Skip to content

BUG: Raise ParserWarning when on_bad_lines is callable and index_col is set (GH#61882) #61902

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AbhijitPatill
Copy link

@AbhijitPatill AbhijitPatill commented Jul 19, 2025

This PR fixes issue #61882. It raises a ParserWarning when on_bad_lines is a callable and index_col is set, since this combination can lead to unexpected behavior.

A test was added in test_read_csv_warn.py to ensure the warning is raised appropriately.

@AbhijitPatill
Copy link
Author

Hi, this PR fixes Issue #[61882]. All pre-commit checks pass locally. The CI failures appear unrelated to this change (macOS/Windows builds, Numpy dev, etc.). Please let me know if anything else is needed.

@chilin0525
Copy link
Contributor

@AbhijitPatill The PR includes over 5,000 file changes — could you double-check if the branch was created from main correctly?

Also, I suggest waiting for confirmation from a core member before opening a PR for any issue.

@simonjayhawkins
Copy link
Member

This PR fixes issue #61882.

that is a merged PR relating to datetime. What's the issue with csv parsing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants