Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6900

[Python] PyArrow cant serialize pandas IntegerArray

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.15.0
    • Fix Version/s: None
    • Component/s: Python
    • Labels:
      None
    • Environment:
      python 3.7

      Description

      PyArrow cant serialize pandas `IntegerArray` and return this error below:

      SerializationCallbackError: pyarrow does not know how to serialize objects of type <class 'pandas.core.arrays.integer.IntegerArray'>.

      To reproduce this bug just run this bunch of code

      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()
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              blcksrx Sayed Mohammad Hossein Torabi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: