Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@mhooreman

Description

@mhooreman
Issue body actions

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 eyeballsMay be closeable, needs more eyeballsEnhancementIO Excelread_excel, to_excelread_excel, to_excelMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNeeds DiscussionRequires discussion from core team before further actionRequires 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.