pandas.Series.duplicated

Series.duplicated(take_last=False)

Return boolean Series denoting duplicate values

Parameters:

take_last : boolean, default False

Take the last observed index in a group. Default first

Returns:

duplicated : Series