You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/11/10 11:57:00 UTC
[jira] [Commented] (ARROW-14656) [Python] Add sort helper method to
StructArray
[ https://issues.apache.org/jira/browse/ARROW-14656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17441691#comment-17441691 ]
Antoine Pitrou commented on ARROW-14656:
----------------------------------------
This would probably be more useful as a C++ addition.
> [Python] Add sort 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
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)