[
https://issues.apache.org/jira/browse/ARROW-6626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alessandro Molina reassigned ARROW-6626:
----------------------------------------
Assignee: Alessandro Molina
> [Python] Handle "set" values as lists when converting to Arrow
> --------------------------------------------------------------
>
> Key: ARROW-6626
> URL: https://issues.apache.org/jira/browse/ARROW-6626
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Wes McKinney
> Assignee: Alessandro Molina
> Priority: Major
>
> See current behavior
> {code}
> In [1]: pa.array([{1,2, 3}])
>
> ---------------------------------------------------------------------------
> ArrowInvalid Traceback (most recent call last)
> <ipython-input-1-20fea2f9457a> in <module>
> ----> 1 pa.array([{1,2, 3}])
> ~/code/arrow/python/pyarrow/array.pxi in pyarrow.lib.array()
> ~/code/arrow/python/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
> ~/code/arrow/python/pyarrow/error.pxi in pyarrow.lib.check_status()
> ArrowInvalid: Could not convert {1, 2, 3} with type set: did not recognize
> Python value type when inferring an Arrow data type
> In ../src/arrow/python/iterators.h, line 70, code: func(value,
> static_cast<int64_t>(i), &keep_going)
> In ../src/arrow/python/inference.cc, line 621, code:
> inferrer.VisitSequence(obj, mask)
> In ../src/arrow/python/python_to_arrow.cc, line 1074, code:
> InferArrowType(seq, mask, options.from_pandas, &real_type)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)