[
https://issues.apache.org/jira/browse/ARROW-5645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481091#comment-17481091
]
Joris Van den Bossche commented on ARROW-5645:
----------------------------------------------
bq. Nested Python lists are now inferred correctly, but we still lack inference
but nested ndarrays with "object" dtype.
[~apitrou] that actually seems to work ?
{code}
In [56]: arr = np.arange(30).reshape(10, 3)
In [57]: arr = np.array(pd.Series(list(arr), dtype=object))
In [58]: arr
Out[58]:
array([array([0, 1, 2]), array([3, 4, 5]), array([6, 7, 8]),
array([ 9, 10, 11]), array([12, 13, 14]), array([15, 16, 17]),
array([18, 19, 20]), array([21, 22, 23]), array([24, 25, 26]),
array([27, 28, 29])], dtype=object)
In [59]: pa.array(arr)
Out[59]:
<pyarrow.lib.ListArray object at 0x7f406db85b20>
[
[
0,
1,
2
],
[
3,
4,
5
],
[
6,
7,
8
],
...
{code}
> [Python] Support inferring nested ndarray with ndim > 1
> -------------------------------------------------------
>
> Key: ARROW-5645
> URL: https://issues.apache.org/jira/browse/ARROW-5645
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Wes McKinney
> Priority: Major
>
> Follow up work to ARROW-4350
--
This message was sent by Atlassian Jira
(v8.20.1#820001)