Let's be explicit about this.
(self, axis_num: int)
| 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 |
no outgoing calls