how to get the counts of the unique values in a column pandas datafrma code example
Example 1: count unique values pandas
df['hID'].nunique()
5
Example 2: pandas count unique values in column
df.nunique()
df['hID'].nunique()
5
df.nunique()