NVIDIA / NVIDIA/cudf

[BUG] Error when printing large CategoricalIndex

Open
#13,281 1 comment 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

Printing a `CategoricalIndex` with more than 200 elements results in the following error:

```
TypeError: Cannot interpret 'interval[float64, right]' as a data type
```

Reproducer

```
import cudf
import cupy

p = cudf.cut(cupy.arange(201), 3)

# this works
print(p[:200])

# this doesn't
print(p)
```

with cudf version 23.04.01 and cupy version 11.6.0

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.