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

Method setup

asv_bench/benchmarks/multiindex_object.py:53–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51
52class GetLocs:
53 def setup(self):
54 self.mi_large = MultiIndex.from_product(
55 [np.arange(1000), np.arange(20), list(string.ascii_letters)],
56 names=["one", "two", "three"],
57 )
58 self.mi_med = MultiIndex.from_product(
59 [np.arange(1000), np.arange(10), list("A")], names=["one", "two", "three"]
60 )
61 self.mi_small = MultiIndex.from_product(
62 [np.arange(100), list("A"), list("A")], names=["one", "two", "three"]
63 )
64
65 def time_large_get_locs(self):
66 self.mi_large.get_locs([999, 19, "Z"])

Callers

nothing calls this directly

Calls 1

from_productMethod · 0.80

Tested by

no test coverage detected