Python 尽管url有效,但熊猫读取url的csv错误

Python 尽管url有效,但熊猫读取url的csv错误,python,pandas,Python,Pandas,我在使用url读取csv时遇到问题,尽管url有效,下面的代码仍会出错 >>> import pandas as pd >>> df = pd.read_csv("http://www.ats.ucla.edu/stat/data/binary.csv") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/p

我在使用url读取csv时遇到问题,尽管url有效,下面的代码仍会出错

>>> import pandas as pd
>>> df = pd.read_csv("http://www.ats.ucla.edu/stat/data/binary.csv")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/pandas/io/parsers.py", line 102, in read_csv
    f = com._get_handle(filepath_or_buffer, 'r', encoding=encoding)
  File "/usr/lib/pymodules/python2.7/pandas/core/common.py", line 633, in _get_handle
    f = open(path, mode)
IOError: [Errno 2] No such file or directory: 'http://www.ats.ucla.edu/stat/data/binary.csv'
>>> 
这有点让人困惑,因为字符串可能是url

有人能帮我吗


谢谢

它对我有效,你能试着重新启动你的终端吗?你使用的是什么版本的pandas?使用pandas 0.16.2,python 3.4 64位Windows 7,英国BT宽带,对我来说很好…我在Ubuntu12.04.5 LTS中使用pandas
'0.7.0'
,我还尝试了重新启动终端问题,在将pandas更新为0.16.2后修复,虽然pip没有默认最新的稳定版本有点奇怪
df = pd.read_csv("./none_list.csv")