-> from pandas.io import data, web
from pandas.io import data, web
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'data'
解决方案
conda install pandas-datareader
from pandas_datareader import data,web
备注:安装程序包用pandas-datareader,调用实验pandas_datareader
使用指南:https://pandas-datareader.readthedocs.io/en/latest/
Reference: https://pandas.pydata.org/pandas-docs/version/0.18/remote_data.html#yahoo-finance
网友评论