Skip to content

fread option to skip certain rows or rows with reading errors #2765

Description

@spedygiorgio

Hi, thanks for your great package. Is it possible to add options to fread either to skip certain data rows or to skip rows with decoding error (as in Python pandas read_csv).

Activity

  1. st-pasha commented on Apr 18, 2018

    @st-pasha
    Contributor

    Do you mean this option:

        error_bad_lines : boolean, default True
            Lines with too many fields (e.g. a csv line with too many commas) will by
            default cause an exception to be raised, and no DataFrame will be returned.
            If False, then these "bad lines" will dropped from the DataFrame that is
            returned.
    

    or some other? Please elaborate on what do you mean by "decoding error".

  2. spedygiorgio commented on Apr 18, 2018

    @spedygiorgio
    Author
  3. ben-schwen commented on Oct 23, 2025

    @ben-schwen
    Member

    Duplicate to #711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions