Skip to content

DOC: add nlargest/nsmallest to API.rst #10145

Closed
@RomanPekar

Description

@RomanPekar

At the moment there's no easy way to partially sort the DataFrame to get top N rows, could be useful feature.

There's partial sorting available for numpy within the bottleneck library.

Here's link to SO question about numpy partial sort - http://stackoverflow.com/questions/10337533/a-fast-way-to-find-the-largest-n-elements-in-an-numpy-array

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions