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