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