count unique values frequency in column dataframe python code example
Example 1: count unique pandas
df['column'].nunique()
Example 2: frequency unique pandas
df.stack().value_counts()
df['column'].nunique()
df.stack().value_counts()