Pandas' loading a CSV file problem

Ek Esawi esawiek at gmail.com
Thu Oct 22 08:44:50 EDT 2015


Here is the whole output. EKE

Traceback (most recent call last):

  File "C:\Users\EK Esawi\Anaconda3\Scripts\MyFile.py", line 3, in <module>

    f = pd.read_csv('c:/Users/EK Esawi/My Documents/Temp/GOSATemp1.csv')

  File "C:\Users\EK
Esawi\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 474, in
parser_f

    return _read(filepath_or_buffer, kwds)

  File "C:\Users\EK
Esawi\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 260, in _read

    return parser.read()

  File "C:\Users\EK
Esawi\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 721, in read

    ret = self._engine.read(nrows)

  File "C:\Users\EK
Esawi\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 1170, in read

    data = self._reader.read(nrows)

  File "pandas\parser.pyx", line 769, in pandas.parser.TextReader.read
(pandas\parser.c:7544)

  File "pandas\parser.pyx", line 791, in
pandas.parser.TextReader._read_low_memory (pandas\parser.c:7784)

  File "pandas\parser.pyx", line 866, in
pandas.parser.TextReader._read_rows (pandas\parser.c:8617)

  File "pandas\parser.pyx", line 973, in
pandas.parser.TextReader._convert_column_data (pandas\parser.c:9928)

  File "pandas\parser.pyx", line 1033, in
pandas.parser.TextReader._convert_tokens (pandas\parser.c:10714)

  File "pandas\parser.pyx", line 1130, in
pandas.parser.TextReader._convert_with_dtype (pandas\parser.c:12118)

  File "pandas\parser.pyx", line 1150, in
pandas.parser.TextReader._string_convert (pandas\parser.c:12332)

  File "pandas\parser.pyx", line 1382, in pandas.parser._string_box_utf8
(pandas\parser.c:17655)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 8:
invalid start byte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20151022/c17e6102/attachment.html>


More information about the Python-list mailing list