Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pandas-dev/pandas
/ _get_level_number
Method
_get_level_number
pandas/core/indexes/base.py:2153–2155 ·
view source on GitHub ↗
(self, level)
Source
from the content-addressed store, hash-verified
2151
)
2152
2153
def
_get_level_number(self, level) -> int:
2154
self._validate_index_level(level)
2155
return
0
2156
2157
def
sortlevel(
2158
self,
Callers
15
droplevel
Method · 0.95
_set_grouper
Method · 0.95
reset_index
Method · 0.45
_ensure_key_mapped_multiindex
Function · 0.45
reset_index
Method · 0.45
stack
Method · 0.45
_rename
Method · 0.45
tz_convert
Method · 0.45
tz_localize
Method · 0.45
sparse_series_to_coo
Function · 0.45
__init__
Method · 0.45
_unstack_multiple
Function · 0.45
Calls
1
_validate_index_level
Method · 0.95
Tested by
3
test_get_level_number_integer
Function · 0.36
test_get_level_number_out_of_bounds
Function · 0.36
test_duplicate_level_names_access_raises
Function · 0.36