cudf.Series.nunique#

Series.nunique(dropna: bool = True) int[source]#

Return count of unique values for the column.

Parameters:
dropnabool, default True

Don’t include NaN in the counts.

Returns:
int

Number of unique values in the column.