Skip to content

Instantly share code, notes, and snippets.

@hossein761
Last active May 31, 2018 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hossein761/5c5c34eb87708b5fa799a42164919ea9 to your computer and use it in GitHub Desktop.
Save hossein761/5c5c34eb87708b5fa799a42164919ea9 to your computer and use it in GitHub Desktop.
histogram of price swings
high_low_dif = pnd_df['high'].sub(pnd_df['low'], axis=0)
high_low_dif_df = pd.DataFrame(high_low_dif_df['high_low_dif'].divide(pnd_df['low']).multiply(100), columns=['high_low_dif'])
high_low_dif_df.plot.hist(alpha=0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment