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

相关文章:

  • 2022-01-15
  • 2021-07-19
  • 2021-11-08
  • 2022-01-10
  • 2021-11-24
  • 2021-09-07
猜你喜欢
  • 2021-10-30
  • 2021-10-04
  • 2021-05-11
  • 2021-11-13
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案