Skip to content

Commit

Permalink
Update modin/pandas/series.py
Browse files Browse the repository at this point in the history
Co-authored-by: Anatoly Myachev <[email protected]>
  • Loading branch information
noloerino and anmyachev authored Sep 13, 2024
1 parent 11e5883 commit cf4dd6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modin/pandas/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ def duplicated(self, keep="first") -> Series: # noqa: PR01, RT01, D200
name = self.name
result = self.to_frame().duplicated(keep=keep)
# DataFrame.duplicated drops the name, so we need to manually restore it
result.name = name
if name is not None:
result.name = name
return result

def eq(
Expand Down

0 comments on commit cf4dd6d

Please sign in to comment.