pandas.core.groupby.SeriesGroupBy.nunique

SeriesGroupBy.nunique(dropna=True)[source]

Returns number of unique elements in the group