(self)
| 3954 | ds.reset_index("y") |
| 3955 | |
| 3956 | def test_reset_index_keep_attrs(self) -> None: |
| 3957 | coord_1 = DataArray([1, 2], dims=["coord_1"], attrs={"attrs": True}) |
| 3958 | ds = Dataset({}, {"coord_1": coord_1}) |
| 3959 | obj = ds.reset_index("coord_1") |
| 3960 | assert ds.coord_1.attrs == obj.coord_1.attrs |
| 3961 | assert len(obj.xindexes) == 0 |
| 3962 | |
| 3963 | def test_reset_index_drop_dims(self) -> None: |
| 3964 | ds = Dataset(coords={"x": [1, 2]}) |
nothing calls this directly
no test coverage detected