apache / apache/arrow

[C++][Python] Allow pyarrow.compute.mode to include null count

Open
#34,173 9 comments 0 reactions 0 assignees View on GitHub
Component: C++ Component: Python Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the enhancement requested

There is a `skip_nulls` argument to dictate whether nulls should make the result null or be skipped, but it would be potentially be useful for `mode` to return whether null was a mode of the dataset

### Component(s)

Python

Contributor guide

Open the contributing guide

Research direction

Start with the Python component and the pyarrow.compute.mode entry point, then trace how its skip_nulls argument currently affects the result. Check the existing mode behavior and tests before deciding where the null count belongs. Done means mode can report whether null is a dataset mode while retaining the documented skip_nulls behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.