Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. data['arithmetic_return'] = data['close'].pct_change()
  2. data['cumulative_arithmetic_return'] = data['arithmetic_return'].cumsum()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement