awkward
awkward copied to clipboard
Extending ak.max/min functionality to first N entries
It would be convenient to have a function to get the first N highest/lowest entries as opposed to just the first max/min. From our side discussion, this could be ak.top/bottom.
I labeled this "performance" because it's equivalent to sort-and-slice.
It looks like Pandas calls this nlargest: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.nlargest.html