Python HTTPError:";HTTP错误404:找不到“;使用Kenneth French数据库的熊猫导入功能时

Python HTTPError:";HTTP错误404:找不到“;使用Kenneth French数据库的熊猫导入功能时,python,pandas,Python,Pandas,我正在使用python pandas的标准包从Kenneth French数据库导入数据: 但是我刚刚得到一个错误:HTTPError:HTTP error 404:notfound 即使代码在几周前运行良好,我也没有做任何更改 即使我完全按照pandas指令使用代码,我也会得到相同的错误 以下是熊猫的使用说明: 我使用的代码可以在搜索“Fama/French”时找到,如下所示: import pandas.io.data as web ip = web.DataReader("5_Indu

我正在使用python pandas的标准包从Kenneth French数据库导入数据:

但是我刚刚得到一个错误:HTTPError:HTTP error 404:notfound 即使代码在几周前运行良好,我也没有做任何更改

即使我完全按照pandas指令使用代码,我也会得到相同的错误

以下是熊猫的使用说明:

我使用的代码可以在搜索“Fama/French”时找到,如下所示:

import pandas.io.data as web

ip = web.DataReader("5_Industry_Portfolios", "famafrench")

ip[4].ix[192607]
我使用的熊猫版本是0.16.1


有没有办法解决这个问题?

远程服务器上的文件似乎已重命名为
5\u Industry\u portfolions\u TXT

import pandas.io.data as web

ip = web.DataReader("5_Industry_Portfolios_TXT", "famafrench")

print(ip[4].ix[192607])
给出:

1 Cnsmr    5.43
2 Manuf    2.73
3 HiTec    1.83
4 Hlth     1.77
5 Other    2.16
Name: 192607, dtype: float64
查看上的链接以获得正确的文件名;应该省略.zip,pandas似乎希望使用TXT文件而不是CSV