Skip to content

Instantly share code, notes, and snippets.

@yongghongg
Created July 24, 2022 10:34
Show Gist options
  • Save yongghongg/4862b41226d991d7de12709900691b1d to your computer and use it in GitHub Desktop.
Save yongghongg/4862b41226d991d7de12709900691b1d to your computer and use it in GitHub Desktop.
import pandas as pd
import matplotlib.pyplot as plt
import yfinance as yf
import mplfinance as mpf
# download stock price data
symbol = 'AAPL'
df = yf.download(symbol, period='6mo')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment