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

Method test_get_loc

pandas/tests/indexes/numeric/test_indexing.py:21–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19
20class TestGetLoc:
21 def test_get_loc(self):
22 index = Index([0, 1, 2])
23 assert index.get_loc(1) == 1
24
25 def test_get_loc_raises_bad_label(self):
26 index = Index([0, 1, 2])

Callers

nothing calls this directly

Calls 2

get_locMethod · 0.95
IndexClass · 0.90

Tested by

no test coverage detected