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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
Kuu6 opened this issue Jul 19, 2022 · 0 comments · Fixed by #47792
Closed
1 task done
Labels
Docs IO CSV read_csv, to_csv
Milestone

Comments

@Kuu6
Copy link

Kuu6 commented Jul 19, 2022

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

@Kuu6 Kuu6 added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 19, 2022
@Kuu6 Kuu6 changed the title DOC: on_bad_lines parameter on read_csv is wrongly labeled for the version DOC: on_bad_lines parameter on read_csv is wrongly labeled for the version 1.3.0 when it should be 1.4.0 Jul 19, 2022
@phofl phofl added IO CSV read_csv, to_csv and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 20, 2022
@phofl phofl added this to the 1.4.4 milestone Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs IO CSV read_csv, to_csv
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants