MCPcopy
hub / github.com/pandas-dev/pandas / test_pct_max_many_rows

Method test_pct_max_many_rows

pandas/tests/test_algos.py:1855–1863  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1853
1854 @pytest.mark.single_cpu
1855 def test_pct_max_many_rows(self):
1856 # GH 18271
1857 values = np.arange(2**24 + 1)
1858 result = algos.rank(values, pct=True).max()
1859 assert result == 1
1860
1861 values = np.arange(2**25 + 2).reshape(2**24 + 1, 2)
1862 result = algos.rank(values, pct=True).max()
1863 assert result == 1
1864
1865
1866class TestMode:

Callers

nothing calls this directly

Calls 3

maxMethod · 0.45
rankMethod · 0.45
reshapeMethod · 0.45

Tested by

no test coverage detected