DataFrame.drop_duplicates(subset=None, keep='first', inplace=False)
[source]
Return DataFrame with duplicate rows removed, optionally only considering certain columns
Parameters: |
subset : column label or sequence of labels, optional Only consider certain columns for identifying duplicates, by default use all of the columns keep : {‘first’, ‘last’, False}, default ‘first’
inplace : boolean, default False Whether to drop duplicates in place or to return a copy |
---|---|
Returns: |
|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.DataFrame.drop_duplicates.html