python for for x in a unique elements from dataframe column code example
Example 1: unique values in dataframe colume
df['Column_name'].value_counts()
Example 2: dataframe python unique values rows
# get the unique values (rows)
df.drop_duplicates()