pandas dataframe get unique rows 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()
for col in df:
print(df[col].unique())
# get the unique values (rows)
df.drop_duplicates()