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

Antoine Pitrou commented on ARROW-45:
-------------------------------------

Let's say we have the following array:
{code:python}
arr = pa.array([[1, None, 2], None, [3, 4]])
{code}

What should the output of flattening be?
* {{pa.array([1, None, 2, None, 3, 4])}}
* or {{pa.array([1, None, 2, 3, 4])}}

The former would need a copy, I'm unsure about the latter (but it seems a null 
list entry could still span a non-empty child range depending on the offsets 
array).

> Python: Add unnest/flatten function for List types
> --------------------------------------------------
>
>                 Key: ARROW-45
>                 URL: https://issues.apache.org/jira/browse/ARROW-45
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Python
>            Reporter: Wes McKinney
>            Priority: Major
>             Fix For: 0.10.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to