MCPcopy
hub / github.com/pandas-dev/pandas / ParserError

Class ParserError

pandas/errors/__init__.py:287–309  ·  view source on GitHub ↗

Exception that is raised by an error encountered in parsing file contents. This is a generic error raised for errors encountered when functions like `read_csv` or `read_html` are parsing contents of a file. See Also -------- read_csv : Read CSV (comma-separated) file into

Source from the content-addressed store, hash-verified

285
286
287class ParserError(ValueError):
288 """
289 Exception that is raised by an error encountered in parsing file contents.
290
291 This is a generic error raised for errors encountered when functions like
292 `read_csv` or `read_html` are parsing contents of a file.
293
294 See Also
295 --------
296 read_csv : Read CSV (comma-separated) file into a DataFrame.
297 read_html : Read HTML table into a DataFrame.
298
299 Examples
300 --------
301 >>> data = '''a,b,c
302 ... cat,foo,bar
303 ... dog,foo,"baz'''
304 >>> from io import StringIO
305 >>> pd.read_csv(StringIO(data), skipfooter=1, engine="python")
306 Traceback (most recent call last):
307 ParserError: ',' expected after '"'. Error could possibly be due
308 to parsing errors in the skipped footer rows
309 """
310
311
312class DtypeWarning(Warning):

Callers 7

_iterparse_nodesMethod · 0.90
_data_to_frameFunction · 0.90
_handle_usecolsMethod · 0.90
_alert_malformedMethod · 0.90
readMethod · 0.90
readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected