Skip to content

np.float64('nan') is not handled correctly #1116

@gdementen

Description

@gdementen

Excel prints a 65535 instead (as in #15).

This is because of the following lines in prepare_xl_data_element (

def prepare_xl_data_element(x):
)

elif np and isinstance(x, np.generic):
        return float(x)

In that case, x is converted to a Python builtin float('nan'), but not to "".

I will try to produce a PR to fix this next week.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions