Created
June 27, 2018 18:55
-
-
Save dgnsrekt/880d8fccda449b56ac96f27bae42e748 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
# percent change = new - old / old * 100 | |
dataframe['percent_change'] = ( | |
dataframe['Last'] - dataframe['PrevDay']) / dataframe['PrevDay'] * 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment