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

serialize_pandas round trip fails on integer columns

    XMLWordPrintableJSON

Details

    Description

      This roundtrip fails, since the Integer column isn't converted to a string after deserializing

      In [1]: import pandas as pd
      im
      In [2]: import pyarrow as pa
      
      In [3]: pa.deserialize_pandas(pa.serialize_pandas(pd.DataFrame({"0": [1, 2]}))).columns
      Out[3]: Index(['0'], dtype='object')
      

      That should be an {{ Int64Index([0]) }} for the columns.

      Attachments

        Issue Links

          Activity

            People

              cpcloud Phillip Cloud
              TomAugspurger Tom Augspurger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: