This used to work earlier, but now throws an error when applied to multi-year daily datasets.
I found that removing February 29 from the dataset (standardizing all years to 365 days) resolves the issue.
My questions:
Why does xarray fail here - is it due to inconsistent group lengths (365 vs 366 days)?
Was this always the intended behavior, or has something changed recently in xarray or dask that now causes this failure?
Is there a recommended way to handle leap years when using ‘.groupby().quantile()’?
Any insights or suggestions would be greatly appreciated.
Thanks!
I still can’t reproduce, but I noticed that your environment seems a bit odd, as xarray=2025.4.0 (the version you supposedly have) requires matplotlib>=3.8 but you have matplotlib=3.4.3.
and then rerun the code sample Deepak posted? If that’s still failing I have no idea how to resolve that (besides tracking down import paths, which is really tricky), otherwise we know that it’s the environment that needs to be sorted out.