Skip to content

BUG: read_csv(engine="pyarrow") silently ignored na_filter=False#65924

Open
jbrockmendel wants to merge 3 commits into
pandas-dev:mainfrom
jbrockmendel:tst-pyarrow-csv-na_filter
Open

BUG: read_csv(engine="pyarrow") silently ignored na_filter=False#65924
jbrockmendel wants to merge 3 commits into
pandas-dev:mainfrom
jbrockmendel:tst-pyarrow-csv-na_filter

Conversation

@jbrockmendel

Copy link
Copy Markdown
Member

Split off from GH-65862.

read_csv with engine="pyarrow" never forwarded na_filter to pyarrow's ConvertOptions, so na_filter=False was silently ignored — NA detection happened anyway, producing results that differed from the c/python engines. This adds na_filter to the pyarrow-engine unsupported-options set so the standard ValueError: The 'na_filter' option is not supported with the 'pyarrow' engine is raised instead.

The corresponding xfailed tests (test_na_values_na_filter_override, test_no_na_filter_on_index, test_na_values_with_dtype_str_and_na_filter, test_parse_dates_empty_string) now assert that error.

🤖 Generated with Claude Code

Add na_filter to the pyarrow-engine unsupported-options set so that
read_csv(..., engine="pyarrow", na_filter=False) raises a clear
ValueError instead of silently performing NA filtering anyway.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jbrockmendel jbrockmendel added Bug Error Reporting Incorrect or improved errors from pandas IO CSV read_csv, to_csv Arrow pyarrow functionality labels Jun 21, 2026
jbrockmendel and others added 2 commits June 21, 2026 12:35
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arrow pyarrow functionality Bug Error Reporting Incorrect or improved errors from pandas IO CSV read_csv, to_csv

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant