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

Method setup

asv_bench/benchmarks/rolling.py:53–56  ·  view source on GitHub ↗
(self, constructor, window, dtype, function, raw)

Source from the content-addressed store, hash-verified

51 param_names = ["constructor", "window", "dtype", "function", "raw"]
52
53 def setup(self, constructor, window, dtype, function, raw):
54 N = 10**3
55 arr = (100 * np.random.random(N)).astype(dtype)
56 self.roll = getattr(pd, constructor)(arr).rolling(window)
57
58 def time_rolling(self, constructor, window, dtype, function, raw):
59 self.roll.apply(function, raw=raw)

Callers

nothing calls this directly

Calls 2

astypeMethod · 0.45
rollingMethod · 0.45

Tested by

no test coverage detected