-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
reduce() by multiple dims on groupby object #3402
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
Labels
Comments
🤦♂️ I can't believe we don't test for this. Fix is incoming. |
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Oct 15, 2019
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Oct 15, 2019
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Oct 15, 2019
Thx for the quick reply. For info this was working fine with v.0.13.0... it only is occuring since the 0.14.0 upgrade |
dcherian
added a commit
that referenced
this issue
Oct 25, 2019
* Another groupby.reduce bugfix. Fixes #3402 * Add whats-new. * Use is_scalar instead * bugfix * fix whats-new * Update xarray/core/groupby.py Co-Authored-By: Maximilian Roos <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
MCVE Code Sample
Expected Output
reduced output performed over multiple dimensions (but not xr.ALL_DIMS) on a groupby object
Problem Description
Using .reduce() on a groupby object is only successful when given a single dimensions or by using xr.ALL_DIMS. I wish to apply a reduce on a subset of dims (last line of code above) but gives folowing error:
Note: Using reduce() on a subset of dims directly on a xr.DataArray seems fine (line 7).
Output of
xr.show_versions()
The text was updated successfully, but these errors were encountered: