unique values count in pandas code example
Example 1: count unique pandas
df['column'].nunique()
Example 2: values of unique from dataframe with count
data = df.groupby('ColumnName')['IDColumnName'].nunique()
print(data)
Example 3: pandas count unique values in column
df.nunique()