dask / dask/dask-expr

Sort value_counts result

Open
#914 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
89
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Thoughts on adding a `sort_values(ascending=False)` to the end of `.value_counts()` (maybe especially if there is a single output partition)? I think that we used to do something like this historically.

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation of `.value_counts()` and how it handles output partitions. Compare the current result with the proposed descending `sort_values` behavior, including the single-output-partition case; done means the intended sorting semantics are agreed and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.