pandas get unique values and count 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()