Skip to content

Commit

Permalink
don't deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
topper-123 committed Sep 29, 2020
1 parent 5740968 commit 01f2f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@ def dropna(self, how="any"):
raise ValueError(f"invalid how option: {how}")

new_codes = [level_codes[~indexer] for level_codes in self.codes]
return self.copy(deep=True).set_codes(codes=new_codes)
return self.set_codes(codes=new_codes)

def _get_level_values(self, level, unique=False):
"""
Expand Down

0 comments on commit 01f2f03

Please sign in to comment.