pandas count column unique values code example Example: count unique values pandas df['hID'].nunique() 5