Skip to content

Commit

Permalink
STY: small comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-s committed Jan 7, 2018
1 parent 0d657a2 commit 9f643c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alphalens/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def rate_of_returns(ret, period):

subret[pret_idx] = np.nan

# transform returns as percentage to previous value for later
# transform returns as percentage change from previous value
subret[slice[1:]] = (subret[slice] + 1).pct_change()[slice[1:]]

sub_returns.append(subret)
Expand Down

0 comments on commit 9f643c1

Please sign in to comment.