We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbcac76 commit 267a17dCopy full SHA for 267a17d
xarray/core/dataset.py
@@ -5867,7 +5867,7 @@ def drop_vars(
5867
for var in names_set:
5868
maybe_midx = self._indexes.get(var, None)
5869
if isinstance(maybe_midx, PandasMultiIndex):
5870
- idx_coord_names = set(maybe_midx.index.names + [maybe_midx.dim])
+ idx_coord_names = set(list(maybe_midx.index.names) + [maybe_midx.dim])
5871
idx_other_names = idx_coord_names - set(names_set)
5872
other_names.update(idx_other_names)
5873
if other_names:
0 commit comments