Closed
Description
We should have some API in xarray.Index
to update the index when its corresponding coordinate variables are renamed.
This currently implemented here where the underlying pd.Index
name(s) are updated:
Lines 3299 to 3314 in c5530d5
This logic should be moved into PandasIndex
and PandasMultiIndex
.
Other, custom indexes might also have internal attributes to update, so we might need formal API for that.