pandas.Series.drop_duplicates
-
Series.drop_duplicates(keep='first', inplace=False)
[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.
inplace : boolean, default False
If True, performs operation inplace and returns None.
Returns: deduplicated : Series
-
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.22.0/generated/pandas.Series.drop_duplicates.html