NVIDIA / NVIDIA/cudf

[FEA] Use `plc.stream_compaction.unique` + size for n_unique in cudf_polars if `Column.is_sorted`

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

Description

(Identified by Claude)

If the input `Column.is_sorted`, it may be more performant just to use the size of the `plc.stream_compaction.unique` result for `n_unique`

https://github.com/rapidsai/cudf/blob/01c7adae10d12da7a175fb616300f8190522b6e0/python/cudf_polars/cudf_polars/dsl/expressions/aggregation.py#L60-L62

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.