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

Method setup

asv_bench/benchmarks/rolling.py:253–256  ·  view source on GitHub ↗
(self, constructor, window, dtype, percentile, ascending, method)

Source from the content-addressed store, hash-verified

251 ]
252
253 def setup(self, constructor, window, dtype, percentile, ascending, method):
254 N = 10**5
255 arr = np.random.random(N).astype(dtype)
256 self.roll = getattr(pd, constructor)(arr).rolling(window)
257
258 def time_rank(self, constructor, window, dtype, percentile, ascending, method):
259 self.roll.rank(pct=percentile, ascending=ascending, method=method)

Callers

nothing calls this directly

Calls 2

astypeMethod · 0.45
rollingMethod · 0.45

Tested by

no test coverage detected