Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.14.0
-
None
-
None
Description
If you have an empty multiindex columns in a pandas dataframe pyarrow cannot serialise and deserialise it. Example code is below to show this.
import pandas as pd import pyarrow as pa columns = pd.MultiIndex.from_tuples([('a', 'b', 'c')]) df = pd.DataFrame(columns = columns) df = df[[]] pa.deserialize_pandas(pa.serialize_pandas(df).to_pybytes()) ... AttributeError: 'dict' object has no attribute 'dtype'