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

Adam Lippai commented on ARROW-17821:
-------------------------------------

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)

Reply via email to