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

Method setup

asv_bench/benchmarks/period.py:86–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84
85class Indexing:
86 def setup(self):
87 self.index = period_range(start="1985", periods=1000, freq="D")
88 self.series = Series(range(1000), index=self.index)
89 self.period = self.index[500]
90
91 def time_get_loc(self):
92 self.index.get_loc(self.period)

Callers

nothing calls this directly

Calls 2

period_rangeFunction · 0.90
SeriesClass · 0.90

Tested by

no test coverage detected