Skip to content

Commit

Permalink
DOC: #53035 clarify the behavior of sep=None. (#53153)
Browse files Browse the repository at this point in the history
docs: #53035 clarify the behavior of sep=None.
  • Loading branch information
Toroi0610 committed May 9, 2023
1 parent 09d79ac commit 7d59f55
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 7d59f55

Please sign in to comment.