How can I get a core dimension in a group? #7636
-
|
I'm processing the following data with And when I pass: I get the error: How can I refer to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You'll need to It seems like you're stacking/unstacking to work around the limitation that Xarray only lets you group by a single variable. Using flox will be better with dask, and more natural: https://flox.readthedocs.io/en/latest/intro.html#grouping-by-multiple-variables |
Beta Was this translation helpful? Give feedback.

You'll need to
unstack("group")first which should work OK with your current chunking.It seems like you're stacking/unstacking to work around the limitation that Xarray only lets you group by a single variable.
Using flox will be better with dask, and more natural: https://flox.readthedocs.io/en/latest/intro.html#grouping-by-multiple-variables