Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yang-ruoxi opened this issue Nov 22, 2024 · 0 comments
Open

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

yang-ruoxi opened this issue Nov 22, 2024 · 0 comments

Comments

@yang-ruoxi
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant