html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/6704#issuecomment-1168410514,https://api.github.com/repos/pydata/xarray/issues/6704,1168410514,IC_kwDOAMm_X85FpIeS,4160723,2022-06-28T08:34:42Z,2022-06-28T08:34:42Z,MEMBER,"> Should rename_dims also rename indexes (dimension coordinates)? Sorry I think I misunderstood the question. If that means ""should rename_dims also rename the (dimension) coordinates"", then I think the answer should be no. With the explicit indexes refactor coordinates and indexes are less tightly coupled, i.e., in the mid/long term we want to drop the concept of a ""dimension coordinate with an implicit index"". So I think `rename_dims` should only rename dimensions (and update indexes metadata accordingly, cf. my previous comment).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1275752720 https://github.com/pydata/xarray/issues/6704#issuecomment-1166980787,https://api.github.com/repos/pydata/xarray/issues/6704,1166980787,IC_kwDOAMm_X85Fjraz,4160723,2022-06-27T07:23:24Z,2022-06-27T07:25:13Z,MEMBER,"> Should rename_dims also rename indexes (dimension coordinates)? Yes, renaming dimensions and/or coordinates should be properly handled by indexes. Xarray's `Index` abstract class provides a `rename` method that may (should) be implemented in subclasses. For example, `PandasIndex` and `PandasMultiIndex` both have a `dim` attribute that must match the dimension name (this attribute is required as in a near future it will be possible to set indexes for non-dimension coordinates). `PandasIndex.rename` (`PandasMultiIndex.rename`) also renames the underlying pandas index (levels) according to the new coordinate name(s).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1275752720