You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2019/08/27 15:46:00 UTC
[jira] [Created] (ARROW-6369) [Python] Support list-of-boolean in
Array.to_pandas conversion
Wes McKinney created ARROW-6369:
-----------------------------------
Summary: [Python] Support list-of-boolean in Array.to_pandas conversion
Key: ARROW-6369
URL: https://issues.apache.org/jira/browse/ARROW-6369
Project: Apache Arrow
Issue Type: Bug
Components: Python
Reporter: Wes McKinney
Fix For: 0.15.0
See
{code}
In [4]: paste
a = pa.array(np.array([[True, False], [True, True, True]]))
## -- End pasted text --
In [5]: a
Out[5]:
<pyarrow.lib.ListArray object at 0x7fc187d3fa40>
[
[
true,
false
],
[
true,
true,
true
]
]
In [6]: a.to_pandas()
---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
<ipython-input-6-08d835d60bd1> in <module>
----> 1 a.to_pandas()
~/code/arrow/python/pyarrow/array.pxi in pyarrow.lib._PandasConvertible.to_pandas()
439 deduplicate_objects=deduplicate_objects)
440
--> 441 return self._to_pandas(options, categories=categories,
442 ignore_metadata=ignore_metadata)
443
~/code/arrow/python/pyarrow/array.pxi in pyarrow.lib.Array._to_pandas()
815
816 with nogil:
--> 817 check_status(ConvertArrayToPandas(c_options, self.sp_array,
818 self, &out))
819 return wrap_array_output(out)
~/code/arrow/python/pyarrow/error.pxi in pyarrow.lib.check_status()
84 raise ArrowKeyError(message)
85 elif status.IsNotImplemented():
---> 86 raise ArrowNotImplementedError(message)
87 elif status.IsTypeError():
88 raise ArrowTypeError(message)
ArrowNotImplementedError: Not implemented type for lists: bool
In ../src/arrow/python/arrow_to_pandas.cc, line 1910, code: VisitTypeInline(*data_->type(), this)
{code}
as reported in https://github.com/apache/arrow/issues/5203
--
This message was sent by Atlassian Jira
(v8.3.2#803003)