count number of each unique value pandas code example
Example 1: count unique values pandas
df['hID'].nunique()
5
Example 2: pandas count distinct values in a column
Series.value_counts(self, normalize=False, sort=True, ascending=False, bins=None, dropna=True)