pandas 1.4.2

Raised by :None:None:`pd.read_csv` and :None:None:`pd.read_table` when it is necessary to change parsers, generally from the default 'c' parser to 'python'.

It happens due to a lack of support or functionality for parsing a particular attribute of a CSV file with the requested engine.

Currently, 'c' unsupported options include the following parameters:

  1. sep other than a single character (e.g. regex separators)

  2. :None:None:`skipfooter` higher than 0

  3. :None:None:`sep=None` with :None:None:`delim_whitespace=False`

The warning can be avoided by adding :None:None:`engine='python'` as a parameter in :None:None:`pd.read_csv` and :None:None:`pd.read_table` methods.

Warning raised when reading a file that doesn't use the default 'c' parser.

See Also

pd.read_csv

Read CSV (comma-separated) file into DataFrame.

pd.read_table

Read general delimited file into DataFrame.

Examples

Using a sep in :None:None:`pd.read_csv` other than a single character:

This example is valid syntax, but we were not able to check execution
>>> import io
... csv = '''a;b;c
...  1;1,8
...  1;2,1'''
... df = pd.read_csv(io.StringIO(csv), sep='[;,]') # doctest: +SKIP
... # ParserWarning: Falling back to the 'python' engine...

Adding :None:None:`engine='python'` to :None:None:`pd.read_csv` removes the Warning:

This example is valid syntax, but we were not able to check execution
>>> df = pd.read_csv(io.StringIO(csv), sep='[;,]', engine='python')
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/errors/__init__.py#129
type: <class 'type'>
Commit: