get count of unique values in pandas dataframe code example Example: pandas count unique values in column df.nunique()