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
| 285 | |
| 286 | |
| 287 | class 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 | |
| 312 | class DtypeWarning(Warning): |
no outgoing calls
no test coverage detected