Skip to content

Add order_by parameter to pandas.Series.value_counts() #4361

@gamesbook

Description

@gamesbook

If possible, it would be really useful to allow for an extra parameter that can override the default behaviour of the pandas.Series.value_counts() function to allow for sorting by by another series. we are looking to push the result out to a bar plot, and it makes sense to have the category (x-axis) displayed in a particular order.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions