Repository navigation
fix(excel): preserve zero values when splitting workbooks - #180
Merged
CoderWanFeng merged 1 commit intoOct 14, 2026
Merged
Conversation
CoderWanFeng
pushed a commit
that referenced
this pull request
Oct 26, 2026
发布 1.1.0:合入 #183 / #184 / #185 三个 PR,以及自 1.0.6 以来的全部修复。 主要内容: - feat(cli): 第一波 CLI 实现 —— `po` 命令 (#184) - feat(contributors): 5 个 Excel 数据核对与整理方法 (#185) - feat(contributor): batch_rename_by_excel (#183) - fix(excel): 拆分时保留 0 值 (#180) - fix(finance): t0 的 Decimal/float TypeError (#181) - fix(excel): 拆分输出工作簿有效性 (#182) - 及其他 1.0.6 以来的修复与文档更新 - 合并 main 独有的 #141 / #155 版本号: 1.0.6 → 1.1.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Splitting an Excel workbook silently replaces valid zero and false values with spaces. For example, an XLSX row
['A', 0, False], split by its first column, becomes['A', ' ', ' ']in worksheetA.Both readers currently use truthiness to detect empty cells. This change checks explicitly for an empty string in XLS and
Nonein XLSX, preserving zero values while keeping the existing handling of empty cells. XLSX booleans retain their type; XLS booleans continue to be handled as the 0/1 values returned by xlrd.Validation: generated, split, and reopened real XLS and XLSX workbooks containing zero, false, true, empty cells, text, and negative numbers. Confirmed that zero/false values are retained and empty cells still become spaces. Both existing Excel wrapper tests passed.