NVIDIA / NVIDIA/cudf

[FEA] Implement pandas.Categorical

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

Description

**Is your feature request related to a problem? Please describe.**
While porting some existing code to cuDF, I have notices `pandas.Categorical` method is not implemented yet.

**Describe the solution you'd like**
To have it implemented.

**Describe alternatives you've considered**
I have used the following workaround it as follows (column 'D'):

```
df = cudf.DataFrame({'A': 1.,
'B': 2,
'C': np.array([3] * 4, dtype='int32'),
'D': cudf.Series(["cat", "dog", "lion", "fish"], dtype='category'),
'E': 'foo'})

```

**Additional context**
Using RAPIDS 0.13

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.