Series.drop_duplicates()

Series.drop_duplicates(*args, **kwargs) [source]

Return Series with duplicate values removed

Parameters:

keep : {?first?, ?last?, False}, default ?first?

  • first : Drop duplicates except for the first occurrence.
  • last : Drop duplicates except for the last occurrence.
  • False : Drop all duplicates.

take_last : deprecated

inplace : boolean, default False

If True, performs operation inplace and returns None.

Returns:

deduplicated : Series

doc_Pandas
2017-01-12 04:53:36
Comments
Leave a Comment

Please login to continue.