Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data['arithmetic_return'] = data['close'].pct_change()
- data['cumulative_arithmetic_return'] = data['arithmetic_return'].cumsum()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement