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

Custom fill_value for from_dataframe/from_series #3212

Open
shoyer opened this issue Aug 13, 2019 · 0 comments
Open

Custom fill_value for from_dataframe/from_series #3212

shoyer opened this issue Aug 13, 2019 · 0 comments

Comments

@shoyer
Copy link
Member

shoyer commented Aug 13, 2019

It would be to have the option to customize the fill value when creating an xarray objects from pandas, instead of requiring to always be NaN.

This would probably be especially useful when creating sparse arrays (#3206), for which it often makes sense to use a fill value of zero. If your data has integer values (e.g., it represents counts), you probably don't want to let it be cast to float first.

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

No branches or pull requests

2 participants