You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/09/28 14:59:00 UTC
[jira] [Updated] (ARROW-6626) [Python] Handle nested "set" values
as lists when converting to Arrow
[ https://issues.apache.org/jira/browse/ARROW-6626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joris Van den Bossche updated ARROW-6626:
-----------------------------------------
Summary: [Python] Handle nested "set" values as lists when converting to Arrow (was: [Python] Handle "set" values as lists when converting to Arrow)
> [Python] Handle nested "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
> Labels: pull-request-available
> Fix For: 6.0.0
>
> Time Spent: 3h 50m
> Remaining Estimate: 0h
>
> 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)