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