[ 
https://issues.apache.org/jira/browse/ARROW-14656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alessandro Molina updated ARROW-14656:
--------------------------------------
    Description: It would be convenient to be able to sort a {{StructArray}} on 
one of its columns. This can be done by combining multiple compute functions, 
but having a helper that does that for you would probably be better.  (was: 
It's usually a common need to sort the results of an aggregation.

The group_by method of tables returns a {{StructArray}} to provide multiple 
aggregations at once. Given that we don't support directly sorting a 
{{StructArray}} it means a few lines of code are necessary for a simple sort 
operation. It would be helpful to provide an helper method in {{StructArray}} 
that provides a one line solution for most simple cases.)

> [Python] Add sort_by helper method to StructArray
> -------------------------------------------------
>
>                 Key: ARROW-14656
>                 URL: https://issues.apache.org/jira/browse/ARROW-14656
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: Python
>            Reporter: Alessandro Molina
>            Assignee: Alessandro Molina
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> It would be convenient to be able to sort a {{StructArray}} on one of its 
> columns. This can be done by combining multiple compute functions, but having 
> a helper that does that for you would probably be better.



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

Reply via email to