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

More on re-indexing #144

Open
jklymak opened this issue Sep 21, 2022 · 5 comments
Open

More on re-indexing #144

jklymak opened this issue Sep 21, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@jklymak
Copy link

jklymak commented Sep 21, 2022

xarray has some pretty powerful, indexing, re-indexing, and binning capabilities. My knowledge of them all is pretty limited, but reindex, reindex_like, groupby and groupby_bins all seem like useful targets for operations that folks dealing with practical, happy gappy, poorly gridded data, could use some help with.

e.g. I couldn't figure this out on my own: https://stackoverflow.com/questions/73760046/replace-some-values-in-dataarray-based-on-list-of-indices/73790162#73790162

I appreciate that some of this is probably old-hat for pandas users, but some of us just skipped right to xarray ;-)

Thanks!

PS, apologies if this is covered in the tutorial and I haven't seen it.

@dcherian
Copy link
Contributor

apologies if this is covered in the tutorial and I haven't seen it.

It isn't covered explicitly and it's a really important topic. Thanks!

@jklymak
Copy link
Author

jklymak commented Sep 21, 2022

I may be able to contribute something, but maybe I don't know all the tricks...

@dcherian
Copy link
Contributor

Go for it! Contributions always help poke us into doing something :) .

It links to alignment for which we have OK material for. But I think this will work nicely as a separate "intermediate" tutorial that builds on that alignment and broadcasting tutorial.

@scottyhq
Copy link
Contributor

New material was added on some of these topics for SciPy 2023 here https://tutorial.xarray.dev/intermediate/01-high-level-computation-patterns.html#label-space-windows-or-bins-groupby

But adding material on groupby_bins and reindex_like would be great!

@scottyhq scottyhq added the enhancement New feature or request label Feb 21, 2024
@jklymak
Copy link
Author

jklymak commented Feb 21, 2024

I guess some of this ended up in the main docs at https://docs.xarray.dev/en/stable/user-guide/groupby.html#binning

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

No branches or pull requests

3 participants