pandas count unique lists code example
Example 1: count unique pandas
df['column'].nunique()
Example 2: get list of unique values in pandas column
a = df['column name'].unique() #returns a list of unique values
df['column'].nunique()
a = df['column name'].unique() #returns a list of unique values