由于要分析Google的历史股票价格数据进行可视化,导入了Pandas_datareader程序包
pip install pandas_datareader
导入数据:
from pandas_datareader import data
goog=data.DataReader('GOOG',start='2004',end='2016',data_source='google')
print(goog.head())
报错,出现以下问题:
Traceback (most recent call last):
File "E:/python数据/goole-finance.py", line 2, in <module>
goog=data.DataReader('GOOG',start='2004',end='2016',data_source='google')
File "D:\python3.6.5\lib\site-packages\pandas_datareader\data.py", line 316, in DataReader
session=session).read()
File "D:\python3.6.5\lib\site-packages\pandas_datareader\google\daily.py", line 36, in __init__
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Google finance'))
pandas_datareader.exceptions.ImmediateDeprecationError: