Sayed Mohammad Hossein Torabi created ARROW-6900:
----------------------------------------------------

             Summary: 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


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)

Reply via email to