(self)
| 51 | |
| 52 | class 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"]) |
nothing calls this directly
no test coverage detected