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