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

Method setup

asv_bench/benchmarks/arithmetic.py:94–100  ·  view source on GitHub ↗
(self, opname)

Source from the content-addressed store, hash-verified

92 param_names = ["opname"]
93
94 def setup(self, opname):
95 arr = np.arange(10**6).reshape(1000, -1)
96 df = DataFrame(arr)
97 df["C"] = 1.0
98 self.df = df
99 self.ser = df[0]
100 self.row = df.iloc[0]
101
102 def time_frame_op_with_series_axis0(self, opname):
103 getattr(self.df, opname)(self.ser, axis=0)

Callers

nothing calls this directly

Calls 2

DataFrameClass · 0.90
reshapeMethod · 0.45

Tested by

no test coverage detected