Skip to content

PERF: why nlargest is so slower? #61076

Open
@ZGarry

Description

@ZGarry

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this issue exists on the latest version of pandas.

  • I have confirmed this issue exists on the main branch of pandas.

Reproducible Example

nlargest is so slow, I think this is question, maybe we should do someting to improve it.

Here, is my code, you can see nlargest use many time more than it should use.

Image

Installed Versions

Replace this line with the output of pd.show_versions()

Prior Performance

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InfoClarification about behavior needed to assess issuePerformanceMemory or execution speed performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions