-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Efficient workaround to group by multiple dimensions #2438
Comments
The existing (1 variable) groupby code actually basically does this same loop. We could potentially speed things up by leveraging a tool like numbagg but nobody has gotten around to that yet. |
Thanks @shoyer, |
I built a manual solution in the stackoverflow thread. Maybe this helps someone. |
Grouping by multiple dimensions is not yet supported (#324):
An inefficient solution is to run the for loops manually:
This is however horribly slow for larger arrays.
Is there a more efficient / straight-forward work-around?
Output of
xr.show_versions()
Related: #324, https://stackoverflow.com/questions/52453426/grouping-by-multiple-dimensions
The text was updated successfully, but these errors were encountered: