Inconsistent Empty File Behavior with read_excel
for Calamine
#19711
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
read_excel
has inconsistent behavior across Excel engines forraise_if_empty
For empty files, I would expect the schema override not to get applied, and instead get a
NoDataError
if a schema override is provided for calamine:(You can reproduce by running this Python script with
uv
, and creating an empty excel file in the current working directory namedempty_file.xlsx
)This behavior differs based on the Excel engine, with
openpyxl
andxlsx2csv
raising aNoDataError
for the above code.Expected behavior
Would expecvt a
NoDataError
for all engines.Installed versions
The text was updated successfully, but these errors were encountered: