[ 
https://issues.apache.org/jira/browse/ARROW-15736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497519#comment-17497519
 ] 

Joris Van den Bossche commented on ARROW-15736:
-----------------------------------------------

For reference, we already have a "argsort" kernel ({{sort_to_indices}}, from 
ARROW-1566, later renamed in ARROW-6232)

> [C++] Aggregate functions for min and max index.
> ------------------------------------------------
>
>                 Key: ARROW-15736
>                 URL: https://issues.apache.org/jira/browse/ARROW-15736
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: A. Coady
>            Priority: Major
>              Labels: kernel
>
> Numpy and Pandas both have `argmin` and `argmax`, for the common use case of 
> finding values in parallel arrays which correspond to min or max values. 
> Proposals:
>  * `min_max_index` for arrays
>  * `hash_min_max_index` for aggregations
>  * some ability to break ties:
>  ** `min_max_index` for tables with multiple sort keys, similar to 
> `sort_indices`
>  ** `min_max_indices` for arrays to match all equal values



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to