You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/02/17 16:04:01 UTC
[jira] [Closed] (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 ]
Antoine Pitrou closed ARROW-6900.
---------------------------------
Resolution: Won't Fix
PyArrow serialization is deprecated, closing as won't fix.
> [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)