(
self: T_PandasIndex, deep: bool = True, memo: dict[int, Any] | None = None
)
| 948 | return self._replace(index, dim=new_dim) |
| 949 | |
| 950 | def _copy( |
| 951 | self: T_PandasIndex, deep: bool = True, memo: dict[int, Any] | None = None |
| 952 | ) -> T_PandasIndex: |
| 953 | if deep: |
| 954 | # pandas is not using the memo |
| 955 | index = self.index.copy(deep=True) |
| 956 | else: |
| 957 | # index will be copied in constructor |
| 958 | index = self.index |
| 959 | return self._replace(index) |
| 960 | |
| 961 | def __getitem__(self, indexer: Any): |
| 962 | return self._replace(self.index[indexer]) |
no test coverage detected