pandas.core.groupby.SeriesGroupBy.nunique

SeriesGroupBy.nunique(self, dropna=True)[source]

Return number of unique elements in the group.

Returns:
Series

Number of unique values within each group.

Scroll To Top