read_excel (calamine engine) Boolean schema override not working #17407
Labels
A-io-spreadsheet
Area: reading/writing Excel/ODS files
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
_fastexcel.InvalidParametersError: invalid parameters: unsupported dtype: "bool"
Issue description
When reading in an Excel column that is TRUE/FALSE (booleans used within an Excel workbook) and explicitly defining it as a pl.Boolean, it throws an unsupported dtype error. I've had to instead read this in as a pl.UInt8 and cast it to a Boolean after its read in as a workaround.
Expected behavior
I would expect it to allow me to explicitly define a column as a boolean when reading in the Excel file without throwing an error.
Installed versions
The text was updated successfully, but these errors were encountered: