number of unique elements in pandas column code example
Example 1: count unique pandas
df['column'].nunique()
Example 2: unique values in dataframe colume
df['Column_name'].value_counts()
df['column'].nunique()
df['Column_name'].value_counts()