Guest User

Untitled

a guest
Jun 18th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. ParserError Traceback (most recent call last)
  3. <ipython-input-16-5eaf2be191b6> in <module>()
  4. ----> 1 df = pd.read_csv('exemplo.csv',sep=';')
  5.  
  6. ~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, doublequote, delim_whitespace, low_memory, memory_map, float_precision)
  7. 676 skip_blank_lines=skip_blank_lines)
  8. 677
  9. --> 678 return _read(filepath_or_buffer, kwds)
  10. 679
  11. 680 parser_f.__name__ = name
  12.  
  13. ~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
  14. 444
  15. 445 try:
  16. --> 446 data = parser.read(nrows)
  17. 447 finally:
  18. 448 parser.close()
  19.  
  20. ~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in read(self, nrows)
  21. 1034 raise ValueError('skipfooter not supported for iteration')
  22. 1035
  23. -> 1036 ret = self._engine.read(nrows)
  24. 1037
  25. 1038 # May alter columns / col_dict
  26.  
  27. ~/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py in read(self, nrows)
  28. 1846 def read(self, nrows=None):
  29. 1847 try:
  30. -> 1848 data = self._reader.read(nrows)
  31. 1849 except StopIteration:
  32. 1850 if self._first_chunk:
  33.  
  34. pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.read()
  35.  
  36. pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_low_memory()
  37.  
  38. pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_rows()
  39.  
  40. pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._tokenize_rows()
  41.  
  42. pandas/_libs/parsers.pyx in pandas._libs.parsers.raise_parser_error()
  43.  
  44. ParserError: Error tokenizing data. C error: Expected 1 fields in line 22, saw 4
Add Comment
Please, Sign In to add comment