raise_if_empty=False does not suppress NoDataError if skip_rows_after_header is passed and no data rows remain #18362
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
I was trying to read just the first-row column contents of a CSV with two header rows and no data rows. I tried to use
skip_rows_after_header=1
in my first attempt, which resulted in aNoDataError
as expected, butraise_if_empty=False
did not suppress that error.After taking another look at the docs passing
n_rows=0
works, so this is not a blocker, but I thought the behavior in my first attempt was a bit surprising.Expected behavior
I would expect an output similar to using
n_rows=0
:Installed versions
The text was updated successfully, but these errors were encountered: