为什么这段代码适用于雅虎数据阅读器:
import pandas.io.data
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
import datetime
df = pd.io.data.get_data_yahoo(['AAPL', 'GE', 'GOOG', 'IBM', 'KO', 'MSFT', 'PEP'],
start='1/1/2010',)['Adj Close']
但如果我添加结束日期,则会给我一个错误
df = pd.io.data.get_data_yahoo(['AAPL', 'GE', 'GOOG', 'IBM', 'KO', 'MSFT', 'PEP'],
start='1/1/2010',
end='1/1/2013')['Adj Close']
错误
Message File Name Line Position
Traceback
<module> <module1> 21
get_data_yahoo C:\Python33\lib\site-packages\pandas\io\data.py 402
_get_data_from C:\Python33\lib\site-packages\pandas\io\data.py 355
_dl_mult_symbols C:\Python33\lib\site-packages\pandas\io\data.py 335
RemoteDataError: No data fetched using '_get_hist_yahoo'
Pandas版本'0.14.1-171-g08cf60a'
Python 3.3.3