You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a big pandas dataframe. I try and convert that to a pyarrow table and it fails with a conversion error. Not sure if this is a bug or is expected?
I realize the code below showing the error is pretty useless as is. What can I do to help identify the cause in my pandas dataframe?
Uwe Korn / @xhochy:
You have a column that contains mixed Python objects of float and str. There the Python objects of float are found first and the column is inferred as float but we cannot currently handle the conversion str -> float automatically at the moment.
Wes McKinney / @wesm:
I'm in the midst of refactoring this code path in ARROW-2814. I made a note to add more informative error output for this case, to show both the type and the string repr of the invalid value.
In the future it would be useful to treat unconvertible values as null: ARROW-2967
Wes McKinney / @wesm: [~brooksch] in the next version of pyarrow (this didn't quite make it into 0.10.0), the exception will show you the offending value and its data type
I have a big pandas dataframe. I try and convert that to a pyarrow table and it fails with a conversion error. Not sure if this is a bug or is expected?
I realize the code below showing the error is pretty useless as is. What can I do to help identify the cause in my pandas dataframe?
Here's the error:
Environment: linux
Reporter: Christopher Brooks
Assignee: Wes McKinney / @wesm
Note: This issue was originally created as ARROW-2966. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: