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
Actually, this is the intended behavior and the documentation just needs updating.
Within the code there's this comment:
# Halflife is no longer applicable when calculating COM
# But allow COM to still be calculated if the user passes other decay args
And I think the reason being is allowing the user to not have to reconstruct a new ExponentialMovingWindow if they want to run cov/var/std separately. This behavior is indirectly tested as well in test_online.py
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.ewm.html ewm is supposed to accept only one of com, span, halflife and alpha and throw a ValueError if multiple are submitted at once. However, when
times
is input as an argument, this check is bypassed.The text was updated successfully, but these errors were encountered: