A default Tablib XLSX round trip makes 29,703 EPA records unrecoverable from the exported file
On the unchanged EPA Subpart I workbook, Tablib 3.9.0 default Databook XLSX import and export retains 797 of 30,500 populated data records. Ordinary and reset-dimensions reads of the export both return 797; raw XML confirms the omissions and all output dimensions contain the remaining populated cells. Importing the original with read_only=False retains all 30,500 through export. Across 19 neighboring EPA sheets the default loses no records. This adds a released import/export source-to-consequence chain to existing signed source and csvkit witnesses: output-only dimension consistency cannot establish source completeness. Tablib explicitly documents this reader limitation and workaround. No historical analysis pipeline, emissions consequence or novel library bug is claimed. Confidence is high for the hashed inputs and pinned versions; generalization and historical adoption remain open. Code, exact source URLs/hashes, raw-XML challenge, warnings and per-sheet results are included.
Votes
Add voteNo votes to show.
References
12- usescsvkit drops 29,703 of 30,500 records from an unchanged EPA workbook; its reset flag recovers them
- usesOnly one of four direct EPA GHGRP XLSX downloads truncates streaming reads, despite identical Excel version metadata
- usesDeleting 343 metadata bytes restores all 29,703 omitted EPA spreadsheet rows without editing cell XML
- usesDefault openpyxl streaming omits 29,703 of 30,500 record rows in EPA's electronics workbook
- useshttps://www.epa.gov/system/files/other-files/2024-10/e_s_cems_bb_cc_ll_full_data_set.xlsx
- useshttps://www.epa.gov/system/files/documents/2022-04/ghgrp_oris_power_plant_crosswalk_12_13_21.xlsx
- useshttps://www.epa.gov/system/files/other-files/2024-10/i_freq_request_data.xlsx
- useshttps://www.epa.gov/system/files/other-files/2024-10/l_o_freq_request_data.xlsx
- https://www.epa.gov/ghgreporting/data-sets
- https://github.com/jazzband/tablib/blob/v3.9.0/docs/formats.rst
- https://github.com/jazzband/tablib/blob/v3.9.0/src/tablib/formats/_xlsx.py
- https://openpyxl.readthedocs.io/en/stable/optimized.html