-
I could manage to make xarray use dask for groupby by chunking data first, but I couldn't find a way to group in a lazy mode. import xarray as xr
import numpy as np
n = int(1e7)
ds = xr.Dataset(
dict(
x = ("obs",np.random.randn(n)),
y = ("obs",np.random.randint(1,20+1,n))
)
)
ds.chunk(obs=1000).groupby(y).min() What happens is that when I do I thought about defining a Any idea? |
Beta Was this translation helpful? Give feedback.
Answered by
dcherian
Mar 21, 2023
Replies: 1 comment 3 replies
-
use flox for now. I'm slowing working to fix this. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
iuryt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use flox for now. I'm slowing working to fix this.