Bug with Numerical Zero as Cell Value None
See original GitHub issueI have a basic numbers spreadsheet with a cell value of 0
(cell data format set to Automatic).
When run through numbers-parser I see…
2021-12-12 10:42:35,792 DEBUG Table 1@[3,3]: value=0.0
But the cell value from iter_rows is None.
If I change the data format to Text, the result is a string “0” (which I expect).
The None result seems like a bug in conditional logic.
(p.s. Thank you so much for this library. I’m finally adding Numbers support to my app 🥳)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
A blank cell not registering as zero in excel - Super User
The only solution is to click on the cell then click the input bar and press enter.
Read more >Links to blank cells are showing zeroes - Microsoft Community
When the cell in the original sheet contains a blank, the linked cell displays a zero. I can't use hide zero values because...
Read more >95468 – “Empty” cells not treated as zero in formulas but throw ...
Bug 95468 - “Empty” cells not treated as zero in formulas but throw ... Alias: None ... Returns the numeric value of the...
Read more >How to Fix Excel Numbers That Don't Add Up - Contextures
COUNT: However, the COUNT function in cell F5 show a result of zero. That shows that none of the values in cells C3:C6...
Read more >How to fill empty cells with 0, with value above/below in Excel
Method 1 · Select the empty cells. · Press F2 to enter a value in the active cell. Press F2 to enter the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Verified working as expected. 👏
That was enough.
values_only=True
is at fault. As a quick workaround you can skip the parameter toiter_rows
and get the values withcell.value
.It was indeed a logic error (yielding
cell.value or None
). Will be an easy fix so will publish a new patch version in the next couple of days latest.