pandas.Series.drop_duplicates

Series.drop_duplicates(take_last=False, inplace=False)

Return Series with duplicate values removed

Parameters:

take_last : boolean, default False

Take the last observed index in a group. Default first

inplace : boolean, default False

If True, performs operation inplace and returns None.

Returns:

deduplicated : Series