雅虎数据调用出现问题

最近在调用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()

posted @ 2020-01-14 14:23  星涅爱别离  阅读(454)  评论(5编辑  收藏  举报