最近在調用Yahoo的數據是發現因為一些收購的計划,所以雅虎的導入也發生了改變
參考來源:https://blog.csdn.net/qq_33639400/article/details/90758311
將
pip install fix_yahoo_finance --upgrade --no-cache-dir
改為
pip install yfinance --upgrade --no-cache-dir
將
> import fix_yahoo_finance as yf
改為
> import yfinance as yf
數據獲取的方式還是沒有太大的變化
> data = web.get_data_yahoo('GS', start = '2017-01-01', end = '2019-01-01')
>data.head()
