You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2018/06/12 20:30:00 UTC

[jira] [Resolved] (ARROW-2626) [Python] pandas ArrowInvalid message should include failing column name

     [ https://issues.apache.org/jira/browse/ARROW-2626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney resolved ARROW-2626.
---------------------------------
    Resolution: Fixed

Issue resolved by pull request 2075
[https://github.com/apache/arrow/pull/2075]

> [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
(v7.6.3#76005)