pandas time series resample and count unique values on list of cilomns code example Example: pandas count the number of unique values in a column df['hID'].nunique() 5