-
Notifications
You must be signed in to change notification settings - Fork 150
Add Expanding and EWM.mean #412
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mroeschke if u can add some tests esp to assert the NotImplemented
raise ValueError("alpha must satisfy: 0 < alpha <= 1") | ||
com = (1 - alpha) / alpha | ||
else: | ||
raise ValueError("Must pass one of com, span, halflife, or alpha") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these all hit in tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added tests for these.
I started working on implementing EWMA today then halfway through I realized "hey I should probably check if there were any PRs in the last month since I last checked". Then I found this and threw away what I had haha Nice work with this :) I think useful next steps would be adding nan handling, min_periods, and std. Do you have any plans to implement these? If not I can give it a stab. |
Agreed, and it would be great if you could follow up with those features @ramicaza! I don't think I'll be able to tackle that if/when this PR is merged in. |
@martindurant ready for a look when you get the chance (the failing test seems unrelated |
Agreed, same as in #411 |
xref #220
Added
expanding
andewm
ops. Forewm
, I used pandas' ewm implementation.