read_csv followed by type conversion panics above a certain number of rows #21006
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
The file below looks like, the panic only happens after about 300 records.
buggy3.csv
Log output
Issue description
This seems to be the same issue as #14390 (the
rechunk
suggestion in it does work here as well).If either of the type conversions inside
with_columns
is removed, the bug does not happen.As explained in that other issue, the problem seems to lie with chunked data from the csv loading.
Expected behavior
When running the code with an input of 272 records including the invalid date (I didn't work out the exact limit as it's probably irrelevant), the following error is raised:
I would expect the same error with more records.
Installed versions
The text was updated successfully, but these errors were encountered: