雅虎财经的 pandas 数据阅读器目前无法工作,因为雅虎更改了用于获取数据的 url pandas,雅虎将其更改为'http://ichart.yahoo.com/table.csv?...
to 'http://ichart.finance.yahoo.com/table.csv?...
.
我收到的错误是IOError: after 3 tries, Yahoo! did not return a 200 for url '...'
所以,我尝试编辑 data.py,根据this fix https://groups.google.com/forum/#!topic/pystatsmodels/iiqSs79VTXA,但还是不行。
我正在使用 pandas 0.12 和 Enthought Canopy。
我需要编译一些东西吗?还需要什么吗?
中(假设用户使用的是 Windows 版 Enthought Canopy,并且它存储在默认位置):
C:\Users\...\AppData\Local\Enthought\Canopy\System\Lib\site-packages\pandas\io
change yahoo_URL = 'http://ichart.yahoo.com/table.csv?'
to yahoo_URL = 'http://ichart.finance.yahoo.com/table.csv?'
保存并重新启动 Canopy
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)