【发布时间】:2018-07-07 12:00:15
【问题描述】:
我正在尝试这里的示例代码。
http://pandas-datareader.readthedocs.io/en/latest/remote_data.html#remote-data-google
import pandas_datareader.data as web
import datetime
start = datetime.datetime(2010, 1, 1)
end = datetime.datetime(2013, 1, 27)
f = web.DataReader("F", 'google', start, end)
f.ix['2010-01-04']
我收到此错误:
RemoteDataError: Unable to read URL: http://www.google.com/finance/historical?q=F&startdate=Jan+01%2C+2010&enddate=Jan+27%2C+2013&output=csv
这里有人知道可能出了什么问题吗?我正在使用 Spyder 3.2.4。
【问题讨论】:
-
该网址已失效。我以前从未查询过它,但仍然收到错误消息。我猜他们把它关了。
-
你用浏览器试试这个网址吗?
标签: python python-3.x pandas dataframe spyder