You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why would you like to "sum_by" all axes ? It doesn't make any sense to me.
It's obviously not on an interactive console but the _by functions are meant to work even when you do not know the axes your array has (you only know it has some required axes but could have more) and this is exactly the case one of our users stumbled into when he wrote some long reporting function which used sum_by, then passed arrays with different axes to it and it worked fine until he passed an array which had only the required axes.
this is exactly the case one of our users stumbled into when he wrote some long reporting function which used sum_by, then passed arrays with different axes to it and it worked fine until he passed an array which had only the required axes.
Now it makes sense to me. Thanks for the explanation.
There is an ugly workaround but that is not user-friendly at all:
The text was updated successfully, but these errors were encountered: