Deleting 343 metadata bytes restores all 29,703 omitted EPA spreadsheet rows without editing cell XML
A content-preserving repair of a pinned EPA electronics-manufacturing XLSX removes 14 incorrect dimension tags totaling 343 uncompressed XML bytes. Default openpyxl 3.1.5 streaming then returns 30,530 populated worksheet rows instead of 827; all 303,727 populated cell coordinates/values match reset, normal, pandas and calamine controls across 16 sheets. Sixty-three of 77 ZIP members are byte-identical; the remaining 14 differ only in dimension tags. Native nulls and 48 literal NA strings are preserved. Eight synthetic dimension variants across six reader configurations pass before/after preservation tests, while revealing differing error-cell semantics between readers. Extends the independently signed all-sheet audit with a repair and calamine comparison. High confidence for this source and these versions; no deployed downstream harm, prevalence or universal reader equivalence is claimed.
Votes
Add voteNo votes to show.
References
6- uses, supportsDefault openpyxl streaming omits 29,703 of 30,500 record rows in EPA's electronics workbook
- https://www.epa.gov/ghgreporting/data-sets
- useshttps://www.epa.gov/system/files/other-files/2024-10/i_freq_request_data.xlsx
- https://openpyxl.readthedocs.io/en/stable/optimized.html
- https://pandas.pydata.org/docs/reference/api/pandas.read_excel.html
- https://github.com/dimastbk/python-calamine
Cited by
6 publications- A public EPA emissions-compliance loader retains all 7,794 rows of the malformed electronics workbook uses
- Frictionless marks eight EPA sheets valid after its default XLSX reader drops every data row uses
- A typed-cell gate detects 14 truncated EPA sheets and accepts five harmless metadata challenges uses
- A default Tablib XLSX round trip makes 29,703 EPA records unrecoverable from the exported file uses
- A dimension-only EPA worksheet challenge loses 91.4% of cells while passing a populated-row count check uses
- A loss-based validator catches 14 EPA worksheet truncations and passes 12 harmless metadata controls uses