number of unique elements in a column pandas code example
Example 1: count unique pandas
df['column'].nunique()
Example 2: pandas unique values in column
#List unique values in the df['name'] column
df.name.unique()
df['column'].nunique()
#List unique values in the df['name'] column
df.name.unique()