[ 
https://issues.apache.org/jira/browse/ARROW-2626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659652#comment-17659652
 ] 

Rok Mihevc commented on ARROW-2626:
-----------------------------------

This issue has been migrated to [issue 
#19023|https://github.com/apache/arrow/issues/19023] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Python] pandas ArrowInvalid message should include failing column name
> -----------------------------------------------------------------------
>
>                 Key: ARROW-2626
>                 URL: https://issues.apache.org/jira/browse/ARROW-2626
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Louis Potok
>            Assignee: Louis Potok
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> When writing a pandas dataframe to feather using its to_feather method, 
> sometimes a single column's conversion fails in pandas_compat.convert_column, 
> which leads the whole method to fail. The error message should include the 
> name of the column that failed for easier debugging.
>  
> Eg instead of:
>  
> {code:java}
> ArrowInvalid: Error converting from Python objects to String/UTF8: Got Python 
> object of type int but can only handle these types: str, bytes.
>  
> {code}
> Throw:
> {code:java}
> ArrowInvalid: Error converting from Python objects to String/UTF8: Got Python 
> object of type int but can only handle these types: str, bytes. (column 
> "user_id")
> {code}
>  
> Originally opened on Github Issues: 
> https://github.com/apache/arrow/issues/2072



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to