You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Lance Dacey (Jira)" <ji...@apache.org> on 2021/11/29 23:50:00 UTC

[jira] [Commented] (ARROW-14608) [Python] Provide access to hash_aggregate functions through a group_by method

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

Lance Dacey commented on ARROW-14608:
-------------------------------------

If we can do group_by using the pyarrow table, then I should be able to drop_duplicates as well if it is combined with a filter right? Sorting and dropping duplicates is one of the big reasons I still need to convert some pyarrow tables into a pandas DataFrame temporarily.
{code:java}
df.sort_values(['id', 'updated_at'], ascending=True).drop_duplicates(subset=['id'], keep='last'){code}

> [Python] Provide access to hash_aggregate functions through a group_by method
> -----------------------------------------------------------------------------
>
>                 Key: ARROW-14608
>                 URL: https://issues.apache.org/jira/browse/ARROW-14608
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: Python
>    Affects Versions: 6.0.0
>            Reporter: Alessandro Molina
>            Assignee: Alessandro Molina
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 7.0.0
>
>          Time Spent: 10h 20m
>  Remaining Estimate: 0h
>




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