I’m getting error while uploading the csv file with the help of pandas library df = pd.read_csv(‘Order 2017.csv’, encoding=’utf-8′) print(df.head()) i try this with aur without encoding=”utf-8″ /u/IndustrySea184 Python Education

Traceback (most recent call last):

File “c:UsersayushOneDriveDesktopPyhtonhello.py”, line 702, in <module>

df = pd.read_csv(‘Order 2017.csv’)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1026, in read_csv

return _read(filepath_or_buffer, kwds)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 620, in _read

parser = TextFileReader(filepath_or_buffer, **kwds)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1620, in __init__

self._engine = self._make_engine(f, self.engine)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1898, in _make_engine

return mapping[engine](f, **self.options)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersc_parser_wrapper.py”, line 93, in __init__

self._reader = parsers.TextReader(src, **kwds)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “parsers.pyx”, line 574, in pandas._libs.parsers.TextReader.__cinit__

File “parsers.pyx”, line 663, in pandas._libs.parsers.TextReader._get_header

File “parsers.pyx”, line 874, in pandas._libs.parsers.TextReader._tokenize_rows

File “parsers.pyx”, line 891, in pandas._libs.parsers.TextReader._check_tokenize_status

File “parsers.pyx”, line 2053, in pandas._libs.parsers.raise_parser_error

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa0 in position 9732: invalid start byte

submitted by /u/IndustrySea184
[link] [comments]

​r/learnpython Traceback (most recent call last): File “c:UsersayushOneDriveDesktopPyhtonhello.py”, line 702, in <module> df = pd.read_csv(‘Order 2017.csv’) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1026, in read_csv return _read(filepath_or_buffer, kwds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 620, in _read parser = TextFileReader(filepath_or_buffer, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1620, in __init__ self._engine = self._make_engine(f, self.engine) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1898, in _make_engine return mapping[engine](f, **self.options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersc_parser_wrapper.py”, line 93, in __init__ self._reader = parsers.TextReader(src, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “parsers.pyx”, line 574, in pandas._libs.parsers.TextReader.__cinit__ File “parsers.pyx”, line 663, in pandas._libs.parsers.TextReader._get_header File “parsers.pyx”, line 874, in pandas._libs.parsers.TextReader._tokenize_rows File “parsers.pyx”, line 891, in pandas._libs.parsers.TextReader._check_tokenize_status File “parsers.pyx”, line 2053, in pandas._libs.parsers.raise_parser_error UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa0 in position 9732: invalid start byte submitted by /u/IndustrySea184 [link] [comments] 

Traceback (most recent call last):

File “c:UsersayushOneDriveDesktopPyhtonhello.py”, line 702, in <module>

df = pd.read_csv(‘Order 2017.csv’)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1026, in read_csv

return _read(filepath_or_buffer, kwds)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 620, in _read

parser = TextFileReader(filepath_or_buffer, **kwds)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1620, in __init__

self._engine = self._make_engine(f, self.engine)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersreaders.py”, line 1898, in _make_engine

return mapping[engine](f, **self.options)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:UsersayushAppDataLocalProgramsPythonPython311Libsite-packagespandasioparsersc_parser_wrapper.py”, line 93, in __init__

self._reader = parsers.TextReader(src, **kwds)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “parsers.pyx”, line 574, in pandas._libs.parsers.TextReader.__cinit__

File “parsers.pyx”, line 663, in pandas._libs.parsers.TextReader._get_header

File “parsers.pyx”, line 874, in pandas._libs.parsers.TextReader._tokenize_rows

File “parsers.pyx”, line 891, in pandas._libs.parsers.TextReader._check_tokenize_status

File “parsers.pyx”, line 2053, in pandas._libs.parsers.raise_parser_error

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa0 in position 9732: invalid start byte

submitted by /u/IndustrySea184
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *