Skip to content
forked from pydata/xarray

Commit 267a17d

Browse files
committed
Fix dropping of muiltiindexes
xref pydata#8844 Closes xarray-contrib/flox#342
1 parent fbcac76 commit 267a17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5867,7 +5867,7 @@ def drop_vars(
58675867
for var in names_set:
58685868
maybe_midx = self._indexes.get(var, None)
58695869
if isinstance(maybe_midx, PandasMultiIndex):
5870-
idx_coord_names = set(maybe_midx.index.names + [maybe_midx.dim])
5870+
idx_coord_names = set(list(maybe_midx.index.names) + [maybe_midx.dim])
58715871
idx_other_names = idx_coord_names - set(names_set)
58725872
other_names.update(idx_other_names)
58735873
if other_names:

0 commit comments

Comments
 (0)