Open dbi-jotho opened 3 months ago
For multiple readers we go into the rust engine which doesn't support latin1 encoding. For a single file this lack of latin1 encoding is hidden because python reads end decodes the buffer into memory.
We should see if we can improve the error message.
That makes sense! An improved error message would sure help but not pressing. Thank you!
Checks
Reproducible example
Log output
Issue description
Problem description read_csv supports reading multiple files via glob pattern (https://pola-rs.github.io/polars-book/user-guide/io/multiple/). However, it seems that if I add the latin1 encoding instead of utf8, it does not work. When I run it with encoding utf8 and ignoreerror to true, it works like a charm.
e.g.: df = pl.read_csv("myfiles*.csv", try_parse_dates=True, separator=separator, encoding='latin1') But I get: Error: No such file or directory (os error 2)
It would be great to have it working with this encoding too.
Expected behavior
This should load multiple CSVs into one dataframe when using latin1 encoding.
Installed versions