Skip to content

ENH: na_rep='=na()' as default value #52258

@mhooreman

Description

@mhooreman

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

Hello,

Excel has a formula for N/A: =na(). If is shown as #N/A.

Why not using this as default value for na_rep instead of ''?

So: df.to_excel('foobar.xlsx', na_rep='=na()')

Thanks a lot,
Michaël

Feature Description

def df.to_excel(..., na_rep='=na()', ...)

Alternative Solutions

N/A

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closing CandidateMay be closeable, needs more eyeballsEnhancementIO Excelread_excel, to_excelMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNeeds DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions