[
https://issues.apache.org/jira/browse/ARROW-15033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456350#comment-17456350
]
Joris Van den Bossche commented on ARROW-15033:
-----------------------------------------------
Can you give an example of what you would like to achieve? (i.e. small example
of such a list of sub-arrays, and what the resulting ListArray would look like)
For example, the generic {{pa.array}} function to construct arrays will take a
list or arrays of sub-lists/arrays:
{code}
In [60]: pa.array([[1, 2], [1, 2, 3]])
Out[60]:
<pyarrow.lib.ListArray object at 0x7f0b10ff1ac0>
[
[
1,
2
],
[
1,
2,
3
]
]
{code}
> No way to create ListArray from sub-arrays
> ------------------------------------------
>
> Key: ARROW-15033
> URL: https://issues.apache.org/jira/browse/ARROW-15033
> Project: Apache Arrow
> Issue Type: New Feature
> Reporter: Vlad Firoiu
> Priority: Major
>
> I'd like to create a `ListArray` from a list of sub-arrays, similar to how
> `StructArray.from_arrays` can create a `StructArray` from a sequence of names
> and arrays. A similarly-named function, `ListArray.from_arrays` does exist,
> but it does something completely different.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)