(cls, axis=0, numeric_axis: bool = True)
| 3265 | |
| 3266 | @classmethod |
| 3267 | def _validate_axis(cls, axis=0, numeric_axis: bool = True) -> None | Literal[0, 1]: |
| 3268 | if axis not in (0, 1, "index", "columns", None): |
| 3269 | raise ValueError(f"No axis named {axis}") |
| 3270 | if numeric_axis: |
| 3271 | num_axis: dict[str | None, Literal[0, 1]] = {"index": 0, "columns": 1} |
| 3272 | return num_axis.get(axis, axis) |
| 3273 | else: |
| 3274 | return axis |
| 3275 | |
| 3276 | @derived_from(pd.DataFrame, ua_args=["index"]) |
| 3277 | def rename(self, index=None, columns=None): |
no test coverage detected