get unique values of category columns in pandas code example
Example 1: how to get distinct value in a column dataframe in python
df.column.unique()
Example 2: dataframe python unique values rows
# get the unique values (rows)
df.drop_duplicates()