程序报错,求指教
txt转化csv文件内容
学号,姓名,得分
001,A,100
002,B,60
003,C,80
代码
import pandas as pd
score=pd.read_csv("C:\Users\acer\Desktop\test")
print score
Traceback (most recent call last):
File "D:\Java\myeclipse\workspace\IPython\com\Test\test_pandas_read.py", line 2, in <module>
score=pd.read_csv("C:\Users\acer\Desktop\test")
File "D:\Python\Python\lib\site-packages\pandas\io\parsers.py", line 645, in parser_f
return _read(filepath_or_buffer, kwds)
File "D:\Python\Python\lib\site-packages\pandas\io\parsers.py", line 388, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "D:\Python\Python\lib\site-packages\pandas\io\parsers.py", line 729, in __init__
self._make_engine(self.engine)
File "D:\Python\Python\lib\site-packages\pandas\io\parsers.py", line 922, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "D:\Python\Python\lib\site-packages\pandas\io\parsers.py", line 1389, in __init__
self._reader = _parser.TextReader(src, **kwds)
File "pandas\parser.pyx", line 373, in pandas.parser.TextReader.__cinit__ (pandas\parser.c:4175)
File "pandas\parser.pyx", line 667, in pandas.parser.TextReader._setup_parser_source (pandas\parser.c:8440)
IOError: File C:\Userscer\Desktop est does not exist