validation of unique values in pandas dataframe code example Example: count unique values pandas df['hID'].nunique() 5