You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/12/29 16:19:00 UTC

[jira] [Resolved] (ARROW-15116) [Python] Expose invalid_row_handler for CSV reader

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

Antoine Pitrou resolved ARROW-15116.
------------------------------------
    Fix Version/s: 7.0.0
       Resolution: Fixed

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

> [Python] Expose invalid_row_handler for CSV reader
> --------------------------------------------------
>
>                 Key: ARROW-15116
>                 URL: https://issues.apache.org/jira/browse/ARROW-15116
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>    Affects Versions: 6.0.1
>            Reporter: Bin Sun
>            Assignee: Antoine Pitrou
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 7.0.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> I deal with 10G+ csv files (tab separated) every day. However, rows are of 21 or 22 fields uncertainly.
> If using pyarrow.csv.read_csv(),  error occurs.  I see ParseOptions(invalid_row_handler=...) in C++ API, but not in python API.
> Is there a due time for this api in python? Thanks in advance!
> Currently, I have to use pandas.read_csv(on_bad_lines=...) , which is extremely slow for 10G+ files...   :(



--
This message was sent by Atlassian Jira
(v8.20.1#820001)