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

Method setup

asv_bench/benchmarks/rolling.py:342–344  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

340 param_names = ["method"]
341
342 def setup(self, method):
343 df = pd.DataFrame({"A": range(50), "B": range(50)})
344 self.gb_ewm = df.groupby("A").ewm(com=1.0)
345
346 def time_groupby_method(self, method):
347 getattr(self.gb_ewm, method)()

Callers

nothing calls this directly

Calls 2

groupbyMethod · 0.95
ewmMethod · 0.45

Tested by

no test coverage detected