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

Method setup

asv_bench/benchmarks/index_object.py:112–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110
111class IndexEquals:
112 def setup(self):
113 idx_large_fast = RangeIndex(100_000)
114 idx_small_slow = date_range(start="1/1/2012", periods=1)
115 self.mi_large_slow = MultiIndex.from_product([idx_large_fast, idx_small_slow])
116
117 self.idx_non_object = RangeIndex(1)
118
119 def time_non_object_equals_multiindex(self):
120 self.idx_non_object.equals(self.mi_large_slow)

Callers

nothing calls this directly

Calls 3

RangeIndexClass · 0.90
date_rangeFunction · 0.90
from_productMethod · 0.80

Tested by

no test coverage detected