xorbits.pandas.Series.nunique#
- Series.nunique(dropna=True, combine_size=None)#
Return number of unique elements in the object.
Excludes NA values by default.
- Parameters
dropna (bool, default True) – Don’t include NaN in the count.
- Return type
int
See also
DataFrame.nuniqueMethod nunique for DataFrame.
Series.countCount non-NA/null observations in the Series.
Examples
>>> s = pd.Series([1, 3, 5, 7, 7]) >>> s 0 1 1 3 2 5 3 7 4 7 dtype: int64
>>> s.nunique() 4
- combine_sizeint, optional
The number of chunks to combine.
This docstring was copied from pandas.core.series.Series.