Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.17.1
Description
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:
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
Attachments
Issue Links
- links to