You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want this to perfectly emulate Pandas's nlargest/nsmallest then there are some additional complications (inputs must have a defined order to resolve ties, and/or we must be able to track and output duplicate values).
Activity
asfimport commentedon Feb 18, 2020
Antoine Pitrou / @pitrou:
Another possibility is to use quickselect.
asfimport commentedon May 25, 2020
Wes McKinney / @wesm:
I reframed this issue as a query processing task. We need to be able to compute TopK/BottomK with chunked data
asfimport commentedon Aug 4, 2021
Antoine Pitrou / @pitrou:
cc @bkietz
asfimport commentedon Aug 9, 2021
David Li / @lidavidm:
Daniel Lemire compared various approaches (modifications of the heap approach or modifications of quickselect) and found that the heap wins in his tests: https://lemire.me/blog/2017/06/21/top-speed-for-top-k-queries/
If we want this to perfectly emulate Pandas's nlargest/nsmallest then there are some additional complications (inputs must have a defined order to resolve ties, and/or we must be able to track and output duplicate values).
asfimport commentedon Sep 10, 2021
David Li / @lidavidm:
Issue resolved by pull request 11019
#11019