vDataFrame.drop_duplicates¶
In [ ]:
vDataFrame.drop_duplicates(columns: list = [])
Filters the duplicated using a partition by the input vcolumns.
⚠ Warning: Dropping duplicates will make the vDataFrame structure heavier. It is recommended to always check the current structure using the 'current_relation' method and to save it using the 'to_db' method with the parameters 'inplace = True' and 'relation_type = table'
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
columns | list | ✓ | List of the vcolumns names. If empty, all the vcolumns will be selected. |
In [154]:
from verticapy.datasets import load_titanic
titanic = load_titanic().select(["pclass", "survived"])
display(titanic)
In [155]:
titanic.drop_duplicates()
Out[155]:
