Closed donly closed 1 year ago
I see no errors in version 4.0.0. The method API for sheets
and tables
was deprecated in 3.0 and has now been removed in 4.0. This is the new API:
from numbers_parser import Document
doc = Document("tests/data/issue-59.numbers")
sheets = doc.sheets
tables = sheets[0].tables
assert tables[0].cell("J2").value == "Saturday, 15 May 2021"
You're right, @masaccio.
This problem comes from numbers-parser 2.3.13
which I installed using python3 -m pip install numbers-parser
.
How to install the latest version 4.0.0
?
pip won't upgrade major versions automatically so you need to explicitly tell it to upgrade using python3 -m pip install --upgrade numbers-parser
.
the test Numbers file merge_cells.numbers.zip, base on
tests/data/custom-format-stress-template.numbers
.Example code:
Result:
Testing Environment:
3.6.15
13.4.1