Skip to content

DOC: on_bad_lines parameter on read_csv is wrongly labeled for the version 1.3.0 when it should be 1.4.0 #47788

Closed
@Kuu6

Description

@Kuu6

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html

Documentation problem

The parameter on_bad_lines has the following values:

        ‘error’, raise an Exception when a bad line is encountered.
        ‘warn’, raise a warning when a bad line is encountered and skip that line.
        ‘skip’, skip bad lines without raising or warning when they are encountered.

Which were added in version 1.3.0, however, the document is showing as if the value callable was added in this version, as it is wrongly added in the message New in version 1.3.0. . There is a message New in version 1.4.0. without content

This is confusing as it seems the callable should work since 1.3.0, but it is since 1.4.0. See example of a complaint

Suggested fix for documentation

Move the callable to the New in version 1.4.0. section

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions