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

Method _get_agg_axis

pandas/core/frame.py:15896–15905  ·  view source on GitHub ↗

Let's be explicit about this.

(self, axis_num: int)

Source from the content-addressed store, hash-verified

15894 return final_result.__finalize__(self, method="idxmax")
15895
15896 def _get_agg_axis(self, axis_num: int) -> Index:
15897 """
15898 Let's be explicit about this.
15899 """
15900 if axis_num == 0:
15901 return self.columns
15902 elif axis_num == 1:
15903 return self.index
15904 else:
15905 raise ValueError(f"Axis must be 0 or 1 (got {axis_num!r})")
15906
15907 def mode(
15908 self, axis: Axis = 0, numeric_only: bool = False, dropna: bool = True

Callers 7

applyMethod · 0.95
agg_axisMethod · 0.80
countMethod · 0.80
idxminMethod · 0.80
idxmaxMethod · 0.80
test_get_agg_axisMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_get_agg_axisMethod · 0.64