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

[jira] [Comment Edited] (ARROW-17821) Implement zip()

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

Adam Lippai edited comment on ARROW-17821 at 9/23/22 11:14 AM:
---------------------------------------------------------------

Exactly! The main challenge is that I have two columns with equal length lists, practically a sorted 1to1 mapping, but I can't use this info.

 

My final goal is solving [https://stackoverflow.com/questions/72878590/how-to-query-pyarrow-table-stuct-field] in an optimal way, but when playing around I found this handy operation missing


was (Author: alippai):
Exactly! The main challenge is that I have two columns with equal length lists, practically a sorted 1to1 mapping, but I can use this info.

 

My final goal is solving [https://stackoverflow.com/questions/72878590/how-to-query-pyarrow-table-stuct-field] in an optimal way, but when playing around I found this handy operation missing

> Implement zip()
> ---------------
>
>                 Key: ARROW-17821
>                 URL: https://issues.apache.org/jira/browse/ARROW-17821
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++, Python
>            Reporter: Adam Lippai
>            Priority: Major
>
> If column A has list\(x), column B has list\(y), column C has list(z), I'd like to be able to create D = zip(A,B,C) where D would be list(\{ A: x, B: y, C: z}).
> x, y, z are types in the example, type of the resulting is D is list(struct).
> Other features to consider:
>  * Zipping list(struct) with list\(x) or list(struct) with list(struct) should be able to merge
>  * Zipping A,B into a Map with keys from A, values from B



--
This message was sent by Atlassian Jira
(v8.20.10#820010)