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