Created
September 6, 2021 00:50
-
-
Save SajidLhessani/99487233c13f4ad15acb01ffbd1bdf17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create columns 'OO' with the difference between the current minute's open and last minute's open | |
df['OO'] = df['Open']-df['Open'].shift(1) | |
# Create columns 'OC' with the difference between the current minute's open and last minute's close | |
df['OC'] = df['Open']-df['Prev_Close'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment