read_excel
reads big numbers incorrectly when they use a cell reference
#19169
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
upstream issue
Checks
Reproducible example
The contents of
test.xlsx
(also attached below) are:in Sheet 1 (note the apostrophe to store this number as text). And then Sheet2 looks the same, but the number references
Sheet1!A2
instead of being a static value.test.xlsx
Log output
Issue description
I think this might be an issue with the
calamine
engine? Using thexlsx2csv
engine seems to fix it, however I would prefer not to use it as I have found thatcalamine
handles floating point precision better.Apologies if this was not the correct place to raise this - please let me know.
Expected behavior
Returns correct number even if the cell uses a formula instead of a static value. I.e. output would be:
Installed versions
The text was updated successfully, but these errors were encountered: