-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Refactor timeseries.py #262
Changes from all commits
cf96139
7f99247
27581fc
ca8567e
895ef5c
489379e
604f57d
d1ff4d7
adcf656
596dd86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -289,7 +289,7 @@ def test_sharpe_2(self, returns, rolling_sharpe_window, expected): | |
returns, rolling_sharpe_window).values.tolist()), expected) | ||
|
||
@parameterized.expand([ | ||
(simple_rets, 0.010766923838471554) | ||
(simple_rets, 0.10376378866671222) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what caused this test to change, the only bug commit I see is the df join There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bb13b0a. You're right that it should be a BUG commit as the original implementation wasn't correct. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reworded that commit: ca8567e |
||
]) | ||
def test_stability_of_timeseries(self, returns, expected): | ||
self.assertAlmostEqual( | ||
|
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.
This is cool, I didn't know dataframe respected ordered dict key ordering until now