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

Method _get_axis_name

pandas/core/generic.py:531–533  ·  view source on GitHub ↗
(cls, axis: Axis)

Source from the content-addressed store, hash-verified

529 @final
530 @classmethod
531 def _get_axis_name(cls, axis: Axis) -> Literal["index", "columns"]:
532 axis_number = cls._get_axis_number(axis)
533 return cls._AXIS_ORDERS[axis_number]
534
535 @final
536 def _get_axis(self, axis: Axis) -> Index:

Callers 15

_set_axis_nocheckMethod · 0.95
rename_axisMethod · 0.95
dropMethod · 0.95
add_prefixMethod · 0.95
add_suffixMethod · 0.95
filterMethod · 0.95
truncateMethod · 0.95
_tz_convertMethod · 0.95
_tz_localizeMethod · 0.95
to_timestampMethod · 0.80
to_periodMethod · 0.80
_get_listlike_indexerMethod · 0.80

Calls 1

_get_axis_numberMethod · 0.80

Tested by 4

test_axis_aliasMethod · 0.64
test_get_axisMethod · 0.64
test_get_numeric_dataMethod · 0.64