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 2020/09/24 08:44:00 UTC
[jira] [Updated] (ARROW-6900) [Python] PyArrow cant serialize
pandas IntegerArray
[ https://issues.apache.org/jira/browse/ARROW-6900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joris Van den Bossche updated ARROW-6900:
-----------------------------------------
Labels: pyarrow-serialization (was: )
> [Python] PyArrow cant serialize pandas IntegerArray
> ---------------------------------------------------
>
> Key: ARROW-6900
> URL: https://issues.apache.org/jira/browse/ARROW-6900
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.15.0
> Environment: python 3.7
> Reporter: Sayed Mohammad Hossein Torabi
> Priority: Major
> Labels: pyarrow-serialization
>
> PyArrow cant serialize pandas `IntegerArray` and return this error below:
> {code:python}
> SerializationCallbackError: pyarrow does not know how to serialize objects of type <class 'pandas.core.arrays.integer.IntegerArray'>.{code}
> To reproduce this bug just run this bunch of code
> {code:python}
> import pandas as pd
> import pyarrow as pa
> from pandas.core.arrays.integer import IntegerArray
> int_array = pd.array([1, None, 3], dtype=pd.Int32Dtype())
> pa.default_serialization_context().serialize(int_array).to_buffer().to_pybytes()
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)