NVIDIA / NVIDIA/cudf

[BUG] Series unique should return an array rather than a dataframe

Open
#8,175 3 comments 0 reactions 0 assignees View on GitHub
bug Python
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

Pandas's unique method returns an array, while ours returns a Series.

```python
import cudf
print(cudf.__version__)

df = cudf.DataFrame({
"a": [0,1,2,0,1,2,0]
})
type(df['a'].unique()), type(df['a'].to_pandas().unique())
0.20.0a+248.g7623f3978b
(cudf.core.series.Series, numpy.ndarray)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.