count of distinct valuesi n ptyhon code example Example: count unique values pandas df['hID'].nunique() 5