Skip to content

Commit

Permalink
DOC: pandas-dev#53035 clarify the behavior of sep=None. (pandas-dev#5…
Browse files Browse the repository at this point in the history
…3153)

docs: pandas-dev#53035 clarify the behavior of sep=None.
  • Loading branch information
Toroi0610 authored and im-vinicius committed Jul 8, 2023
1 parent db272bf commit c30ec1f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pandas/io/parsers/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@
sep : str, default {_default_sep}
Delimiter to use. If sep is None, the C engine cannot automatically detect
the separator, but the Python parsing engine can, meaning the latter will
be used and automatically detect the separator by Python's builtin sniffer
tool, ``csv.Sniffer``. In addition, separators longer than 1 character and
different from ``'\s+'`` will be interpreted as regular expressions and
will also force the use of the Python parsing engine. Note that regex
delimiters are prone to ignoring quoted data. Regex example: ``'\r\t'``.
be used and automatically detect the separator from only the first valid
row of the file by Python's builtin sniffer tool, ``csv.Sniffer``.
In addition, separators longer than 1 character and different from
``'\s+'`` will be interpreted as regular expressions and will also force
the use of the Python parsing engine. Note that regex delimiters are prone
to ignoring quoted data. Regex example: ``'\r\t'``.
delimiter : str, default ``None``
Alias for sep.
header : int, list of int, None, default 'infer'
Expand Down

0 comments on commit c30ec1f

Please sign in to comment.