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

Method setup

asv_bench/benchmarks/algorithms.py:184–192  ·  view source on GitHub ↗
(self, quantile, interpolation, dtype)

Source from the content-addressed store, hash-verified

182 param_names = ["quantile", "interpolation", "dtype"]
183
184 def setup(self, quantile, interpolation, dtype):
185 N = 10**5
186 if dtype in ["int64", "uint64"]:
187 data = np.arange(N, dtype=dtype)
188 elif dtype == "float64":
189 data = np.random.randn(N)
190 else:
191 raise NotImplementedError
192 self.ser = pd.Series(data.repeat(5))
193
194 def time_quantile(self, quantile, interpolation, dtype):
195 self.ser.quantile(quantile, interpolation=interpolation)

Callers

nothing calls this directly

Calls 1

repeatMethod · 0.45

Tested by

no test coverage detected