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

Method setup

asv_bench/benchmarks/timeseries.py:241–246  ·  view source on GitHub ↗
(self, monotonic)

Source from the content-addressed store, hash-verified

239 param_names = ["monotonic"]
240
241 def setup(self, monotonic):
242 N = 10**5
243 idx = date_range(start="1/1/2000", periods=N, freq="s")
244 self.s = Series(np.random.randn(N), index=idx)
245 if not monotonic:
246 self.s = self.s.sample(frac=1)
247
248 def time_sort_index(self, monotonic):
249 self.s.sort_index()

Callers

nothing calls this directly

Calls 3

date_rangeFunction · 0.90
SeriesClass · 0.90
sampleMethod · 0.45

Tested by

no test coverage detected