Skip to content

updating column units from "NaN" to "" errors out  #1858

@yang-ruoxi

Description

@yang-ruoxi

conv_args.append(ureg.Unit(u))

When updating the column units from "NaN" to "" (dimensionless), one will get the ValueError: "Can't convert NaN to for {path}".
The reason is that ureg.Unit(u) can't take "NaN" as value.
Add a u.lower() != "nan" would address it.

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