Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
20
class
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_loc
Method · 0.95
Index
Class · 0.90
Tested by
no test coverage detected