Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.Series.duplicated

Series.duplicated(keep='first')[source]

Return boolean Series denoting duplicate values

Parameters:

keep : {‘first’, ‘last’, False}, default ‘first’

  • first : Mark duplicates as True except for the first occurrence.
  • last : Mark duplicates as True except for the last occurrence.
  • False : Mark all duplicates as True.
Returns:

duplicated : Series

Scroll To Top