count distinct values in a column pandas code example
Example 1: count unique pandas
df['column'].nunique()
Example 2: how to get distinct value in a column dataframe in python
df.column.unique()
Example 3: count unique pandas
df.nunique()
Example 4: pandas count distinct values in a column
Series.value_counts(self, normalize=False, sort=True, ascending=False, bins=None, dropna=True)