cudf.Series.unique#

Series.unique()#

Returns unique values of this Series.

Returns
Series

A series with only the unique values.

Examples

>>> import cudf
>>> series = cudf.Series(['a', 'a', 'b', None, 'b', None, 'c'])
>>> series
0       a
1       a
2       b
3    <NA>
4       b
5    <NA>
6       c
dtype: object
>>> series.unique()
0    <NA>
1       a
2       b
3       c
dtype: object