[
https://issues.apache.org/jira/browse/ARROW-1705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336094#comment-16336094
]
Antoine Pitrou commented on ARROW-1705:
---------------------------------------
Before this, do we need to first add struct type support to the `pa.array`
factory function? Currently it doesn't seem supported:
{{ >>> ty = pa.struct([pa.field('key', pa.int32()), pa.field('value',
pa.float64())])}}
{{ >>> pa.array([[1, 2], [3, 4]], type=ty)}}
{{ Traceback (most recent call last):}}
{{ File "<ipython-input-29-f5e8f7daa504>", line 1, in <module>}}
{{ pa.array([[1, 2], [3, 4]], type=ty)}}
{{ File "array.pxi", line 174, in pyarrow.lib.array}}
{{ File "array.pxi", line 29, in pyarrow.lib._sequence_to_array}}
{{ File "error.pxi", line 85, in pyarrow.lib.check_status}}
{{ ArrowNotImplementedError: No type converter implemented for struct<key:
int32, value: double>}}
> [Python] Create StructArray from sequence of dicts given a known data type
> --------------------------------------------------------------------------
>
> Key: ARROW-1705
> URL: https://issues.apache.org/jira/browse/ARROW-1705
> Project: Apache Arrow
> Issue Type: New Feature
> Components: Python
> Reporter: Wes McKinney
> Priority: Major
> Fix For: 0.9.0
>
>
> See https://github.com/apache/arrow/issues/1217
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)