select only unique rows pandas based on a columns code example
Example 1: dataframe unique values in each column
for col in df:
print(df[col].unique())
Example 2: dataframe python unique values rows
# get the unique values (rows)
df.drop_duplicates()