Skip to content

Blank cells in .xlsx would return NaN in the markdown. #183

Open

Description

I just thought Python's default NaN doesn't look visually good on the markdown results. There should be a way/an option for it to output an empty cell instead.

Activity

  1. l-lumin commented on Dec 21, 2024

    @l-lumin
    Contributor
  2. johann-petrak commented on Mar 24, 2025

    @johann-petrak

    Yes, it should be trivial to make sure that Markdown table cells for empy sheet cells are empy instead of containing "NaN" .

    This is extremely annoying

  3. fn5 commented on Aug 21, 2025

    @fn5

    Following up on this item.

    In excel:

    Image

    Using markitdown:

    | • The R-X points that define the polygon has been identified. | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | | For each harmonic, the attached spreadsheet contains: | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN |

  4. dan-i-am commented on Jan 21, 2026

    @dan-i-am

    On the other hand, if the markdown output is handed to certain LLMs, having a NaN value can sometimes help it track column ordinals better and reduce mismatch-related hallucinations. It also allows the LLM to infer a "numeric type" since NaN implies it was a numeric cell with a "null/blank" value in it.

    My advice is that excel conversion should have a formatting config that allows NaN to optionally be replaced by something else (empty string or some other string) vs. making a blanket assumption to always remove NaN as not useful. There are other formatting things missing from the export that would be optionally useful (such as date and currency formats).

  5. WolffM commented on Mar 14, 2026

    @WolffM

    hey, i attempted a fix for this. Let me know if it looks right: #1619

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions