Skip to content

Add key option to sort methods #9855

Closed
Closed
@SethMMorton

Description

@SethMMorton

One feature that I am missing from dataframes is to sort with a custom key function, similar to the builtin sorted or list.sort. I see there is some effort to unify sorting in issue #8239, so it might be a nice to add this powerful functionality to pandas while the sorting API is being overhauled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffDuplicate ReportDuplicate issue or pull requestEnhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions