Skip to content

Commit

Permalink
Update xarray/core/dataarray.py
Browse files Browse the repository at this point in the history
Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>
  • Loading branch information
ahuang11 and max-sixty authored May 13, 2021
1 parent 75a9c91 commit fd92d25
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -4598,7 +4598,6 @@ def drop_duplicates(
-------
DataArray
"""
indexes = {}
if dim not in self.dims:
raise ValueError(f"'{dim}' not found in dimensions")
indexes = {dim: ~self.get_index(dim).duplicated(keep=keep)}
Expand Down

0 comments on commit fd92d25

Please sign in to comment.