Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort value_counts result #914

Open
mrocklin opened this issue Feb 29, 2024 · 2 comments
Open

Sort value_counts result #914

mrocklin opened this issue Feb 29, 2024 · 2 comments

Comments

@mrocklin
Copy link
Member

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.

@mrocklin
Copy link
Member Author

Also, I was surprised that i couldn't call .value_counts().sort_values(), but could call .value_counts().compute().sort_values()

@phofl
Copy link
Collaborator

phofl commented Mar 2, 2024

Just a general note: .value_counts().sort_values() this didn't work in dask/dask either but wen can certainly add this in the future

Thoughts on adding a sort_values(ascending=False) to the end of .value_counts()

You can specify this but we can certainly make this the default if split_out=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants