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
When using ddf.rolling("1S", center=True).mean()
or some other time window there is an error:
TypeError: unsupported operand type(s) for //: 'str' and 'int'
but ddf.rolling(5, center=True).mean() works.
i don't know why it doesn't work exactly for time windows, but an easy fix would be to run:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When using
ddf.rolling("1S", center=True).mean()
or some other time window there is an error:
TypeError: unsupported operand type(s) for //: 'str' and 'int'
but
ddf.rolling(5, center=True).mean()
works.i don't know why it doesn't work exactly for time windows, but an easy fix would be to run:
Would it be easy / worthwhile to implement this in the rolling function so that time windows work with
center=True
?Beta Was this translation helpful? Give feedback.
All reactions