pandas.DataFrame.drop_duplicates¶
Return DataFrame with duplicate rows removed, optionally only considering certain columns. Indexes, including time indexes are ignored.
- param subset
- column label or sequence of labels, optional
Only consider certain columns for identifying duplicates, by default use all of the columns
- param keep
- {‘first’, ‘last’, False}, default ‘first’
first
: Drop duplicates except for the first occurrence.last
: Drop duplicates except for the last occurrence.False : Drop all duplicates.
- param inplace
- boolean, default False
Whether to drop duplicates in place or to return a copy
- return
DataFrame
Warning
This feature is currently unsupported by Intel Scalable Dataframe Compiler