Skip to content

Instantly share code, notes, and snippets.

@yildizumut yildizumut/return.py Secret
Last active Aug 13, 2019

Embed
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']
print(returns.tolist())
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.