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
I really should not open this can of worms but per #4450 (comment):
I'm always confused about whether ds.groupby(..., keep_attrs=True).mean() or ds.groupby(...).mean(keep_attrs=True) is correct. (similarly for rolling, coarsen etc.)
Also as I try to fix the keep_attr behavior in #4510 it would be good to know where they should go. So I tried to figure out how this is currently handled and found the following:
I really should not open this can of worms but per #4450 (comment):
Also as I try to fix the
keep_attr
behavior in #4510 it would be good to know where they should go. So I tried to figure out how this is currently handled and found the following:ds.xxx(keep_attrs=True).yyy()
ds.xxx().yyy(keep_attrs=True)
coarsen
(fixed in coarsen: better keep_attrs #5227)groupby
groupby_bin
resample
rolling
(adjusted in rolling keep_attrs & default True #4510)rolling_exp
(fixed in rolling_exp: keep_attrs and typing #4592)weighted
So the working consensus seems to be to to
ds.xxx().yyy(keep_attrs=True)
- any comments on that?(Edit: looking at this it is only half as bad, "only"
coarsen
,rolling
(#4510), androlling_exp
would need to be fixed.)Detailed analysis
coarsen
groupby
groupby_bins
resample
rolling
see #4510
rolling_exp
weighted
edit: moved
rolling
after #4510, movedrolling_exp
after #4592 andcoarsen
after #5227The text was updated successfully, but these errors were encountered: