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

Function test_getitem_group_select

pandas/tests/indexes/multi/test_indexing.py:554–557  ·  view source on GitHub ↗
(idx)

Source from the content-addressed store, hash-verified

552
553
554def test_getitem_group_select(idx):
555 sorted_idx, _ = idx.sortlevel(0)
556 assert sorted_idx.get_loc("baz") == slice(3, 4)
557 assert sorted_idx.get_loc("foo") == slice(0, 2)
558
559
560@pytest.mark.parametrize("box", [list, Index])

Callers

nothing calls this directly

Calls 2

sortlevelMethod · 0.45
get_locMethod · 0.45

Tested by

no test coverage detected