Skip to content

Instantly share code, notes, and snippets.

@yildizumut yildizumut/ Secret
Last active Aug 13, 2019

What would you like to do?
Calculating daily return
returns = (S_eon.loc[1:, 'Close'] - \
S_eon.shift(1).loc[1:, 'Close']) / \
S_eon.shift(1).loc[1:, 'Close']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.