Skip to content

Commit

Permalink
Merge branch 'main' into table_plot_titles
Browse files Browse the repository at this point in the history
  • Loading branch information
s0ap committed Jul 6, 2022
2 parents c5660ba + 99fb65b commit 115a777
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
===========

0.0.59
-----
- Fixed EOY compounded return calculation

0.0.58
-----
- Run fillna(0) on plot's beta (issue #193)
Expand Down
4 changes: 3 additions & 1 deletion quantstats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,9 @@ def monthly_returns(returns, eoy=True, compounded=True, prepare_returns=True):

if eoy:
returns['eoy'] = _utils.group_returns(
original_returns, original_returns.index.year).values
original_returns,
original_returns.index.year,
compounded=compounded).values

returns.columns = map(lambda x: str(x).upper(), returns.columns)
returns.index.name = None
Expand Down
2 changes: 1 addition & 1 deletion quantstats/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.0.58"
version = "0.0.59"

0 comments on commit 115a777

Please sign in to comment.