Skip to content

Commit

Permalink
Replace drop with drop_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Apr 6, 2021
1 parent 8c27afb commit 8a168ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -7195,7 +7195,7 @@ def drop_duplicate_coords(

if base_coord is not None:
# remove tmp_dim
new = new.swap_dims({tmp_dim: base_coord}).drop(tmp_dim)
new = new.swap_dims({tmp_dim: base_coord}).drop_vars(tmp_dim)

# get associated coordinates with the stacked dim
tmp_index = stacked_coord_indices.isel({coord: ~index}).indexes[tmp_dim]
Expand Down

0 comments on commit 8a168ce

Please sign in to comment.