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

[Python] PyArrow cant serialize pandas IntegerArray

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.15.0
    • None
    • Python
    • 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

            Unassigned Unassigned
            blcksrx Sayed Mohammad Hossein Torabi
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: