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

xarray Dataset and other data science oriented parameters #381

Open
poplarShift opened this issue Feb 29, 2020 · 3 comments
Open

xarray Dataset and other data science oriented parameters #381

poplarShift opened this issue Feb 29, 2020 · 3 comments
Labels
component: type/value stuff system of parameter type/value checking, inheritnace, etc etc status: discussion Discussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues. type-feature Feature request
Milestone

Comments

@poplarShift
Copy link

I've been enjoying doing my data science pipelines with panel+param lately which makes workflows tidy and parameter sweeps a breeze. There already is a param.DataFrame, how about e.g. Dataset which would hold an xarray.Dataset?

@jbednar
Copy link
Member

jbednar commented Feb 29, 2020

Sounds great! And presumably xarray.DataArray? The main work is just to figure out how to validate what's given (i.e. to express constraints on the dimensions/coordinates/types/etc), starting by copying param.DataFrame and adapting as needed. (If not for validation, of course, you can already use param.Parameter.) If you're interested in starting a PR, we would love to have it! And then maybe eventually we could adapt xrviz to display the Dataset or DataArray as a Panel.

@ceball
Copy link
Contributor

ceball commented Apr 13, 2020

In case it's useful (haven't investigated yet): traitlets related to numpy, pandas, and xarray: https://github.com/jupyter-widgets/traittypes/

@ceball ceball added type-feature Feature request component: type/value stuff system of parameter type/value checking, inheritnace, etc etc status: discussion Discussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues. and removed type-feature Feature request labels Apr 13, 2020
@poplarShift
Copy link
Author

poplarShift commented Apr 29, 2020

traittypes looks interesting but doesn't seem to be checking a lot of the properties (dimensions, coordinates, ...) so I have not tried to use that for inspiration.

And then maybe eventually we could adapt xrviz to display the Dataset or DataArray as a Panel.

The new xarray html repr would be a great starting point for that

@tonyfast tonyfast added this to the Wishlist milestone Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: type/value stuff system of parameter type/value checking, inheritnace, etc etc status: discussion Discussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues. type-feature Feature request
Projects
None yet
Development

No branches or pull requests

4 participants