Preserve literal NA values and blank cells in Excel conversions - #2499
Open
Kunpeng Xie (pentaoa) wants to merge 1 commit into
Open
Kunpeng Xie (pentaoa) wants to merge 1 commit into
Kunpeng Xie (pentaoa) wants to merge 1 commit into
Conversation
Author
|
@microsoft-github-policy-service agree |
Kunpeng Xie (pentaoa)
force-pushed
the
fix/excel-literal-na-values
branch
from
September 17, 2026 09:11
53a2778 to
4e81389
Compare
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.
Fixes #2498.
An Excel row containing
NA,NULL, and a blank cell currently becomes| NaN | NaN | NaN |. Disable pandas' default NA-token recognition so literal cell text is preserved and blanks remain empty. Apply the same setting to XLS, XLSX, and the legacyshowZeroesrepair path.The regression runs real workbooks through
MarkItDown.convert_stream, including a small XLS fixture to avoid adding a workbook-writing test dependency. It checks several NA-like strings, blank cells, and integer values against the resulting Markdown table.Validation:
git diff --checkpass. The full multi-format suite was not run; this change adds no dependencies.AI assistance: OpenAI Codex was used for investigation, implementation, and local test execution.