arw2019 opened a new pull request #7822:
URL: https://github.com/apache/arrow/pull/7822


   - [x] closes ARROW-9096
   - [x] tests added & passed
   
   This PR fixes the roundtrip conversion for Pandas DataFrames whose column 
index is numeric but has `dtype=object`, such as
   ```
   df = pd.DataFrame([1], columns=pd.Index([1], dtype=object))  # underlying int
   df = pd.DataFrame([1], columns=pd.Index([1.1], dtype=object)) # underlying 
float
   df = pd.DataFrame([1], columns=pd.Index([datetime(2018, 1, 1)], 
dtype='object')) # underlying datetime
   ```
   https://issues.apache.org/jira/browse/ARROW-3651 largely solved the datetime 
variant of this problem (such that the conversion ran correctly excepting that 
the dtype after roundtrip did not match). With the current fix a roundtrip of 
the problematic DataFrames from ARROW-3651 returns the exact original frame.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to