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