pandas count values unique code example
Example 1: count unique pandas
df['column'].nunique()
Example 2: dataframe python unique values rows
# get the unique values (rows)
df.drop_duplicates()
df['column'].nunique()
# get the unique values (rows)
df.drop_duplicates()