[ https://issues.apache.org/jira/browse/ARROW-6626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joris Van den Bossche resolved ARROW-6626. ------------------------------------------ Resolution: Fixed Issue resolved by pull request 11076 [https://github.com/apache/arrow/pull/11076] > [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)