This is called from the cython code when we set the `index` attribute directly, e.g. `series.index = [1, 2, 3]`.
(self, axis: AxisInt, labels: AnyArrayLike | list)
| 746 | |
| 747 | @final |
| 748 | def _set_axis(self, axis: AxisInt, labels: AnyArrayLike | list) -> None: |
| 749 | """ |
| 750 | This is called from the cython code when we set the `index` attribute |
| 751 | directly, e.g. `series.index = [1, 2, 3]`. |
| 752 | """ |
| 753 | labels = ensure_index(labels) |
| 754 | self._mgr.set_axis(axis, labels) |
| 755 | |
| 756 | @final |
| 757 | def droplevel(self, level: IndexLabel, axis: Axis = 0) -> Self: |
no test coverage detected