Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created February 21, 2020 07:04
Show Gist options
  • Save quantra-go-algo/07bf31f08602538264af2ee31b37528d to your computer and use it in GitHub Desktop.
Save quantra-go-algo/07bf31f08602538264af2ee31b37528d to your computer and use it in GitHub Desktop.
stock['ret'] = stock['Adj Close'].pct_change()
stock['ret'].plot(grid=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment