Richard Wu created ARROW-9096:
---------------------------------

             Summary: data type "integer" not understood: pandas roundtrip
                 Key: ARROW-9096
                 URL: https://issues.apache.org/jira/browse/ARROW-9096
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 0.17.1
            Reporter: Richard Wu


The following will fail the roundtrip since the column indexes' pandas_type is 
converted from int64 to integer when an additional column is introduced and 
subsequently moved to the index:

 
{code:java}
df = pd.DataFrame(np.ones((3,1), index=[[1,2,3]])
df['foo'] = np.arange(3)
df = df.set_index('foo', append=True)
table = pyarrow.Table.from_pandas(df)
table.to_pandas()  # Errors{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to