pandas.Index.duplicated¶
-
Index.
duplicated
(*args, **kwargs)[source]¶ Return boolean np.ndarray denoting duplicate values
Parameters: keep : {‘first’, ‘last’, False}, default ‘first’
first
: Mark duplicates asTrue
except for the first occurrence.last
: Mark duplicates asTrue
except for the last occurrence.- False : Mark all duplicates as
True
.
take_last : deprecated
Returns: duplicated : np.ndarray