pandas.MultiIndex.duplicated
-
MultiIndex.duplicated(keep='first')
[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
.
Returns: duplicated : np.ndarray
-
© 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.MultiIndex.duplicated.html