diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 3a83b477681..75dbc61ebac 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -2657,13 +2657,7 @@ def _rename_indexes(self, name_dict, dims_set): continue if isinstance(v, pd.MultiIndex): new_names = [name_dict.get(k, k) for k in v.names] - index = pd.MultiIndex( - v.levels, - v.labels, - v.sortorder, - names=new_names, - verify_integrity=False, - ) + index = v.rename(names=new_names) else: index = v.rename(new_name) indexes[new_name] = index