Series.dropDuplicates
Remove duplicate rows
danfo.Series.dropDuplicates(options)
Parameters | Type | Description | Default |
---|---|---|---|
options | Object | keep: "first" | "last", which duplicate value to keep. Defaults to "first". inplace: Boolean indicating whether to perform the operation in-place or not. Defaults to false |
Returns: Series
Examples
Drop duplicate by keeping the first occurrence of the duplicate value
Drop duplicate and keep only the last duplicated value
Remove duplicate value in-place
Last updated