Skip to content

Commit 7d59f55

Browse files
authored
DOC: #53035 clarify the behavior of sep=None. (#53153)
docs: #53035 clarify the behavior of sep=None.
1 parent 09d79ac commit 7d59f55

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/io/parsers/readers.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@
103103
sep : str, default {_default_sep}
104104
Delimiter to use. If sep is None, the C engine cannot automatically detect
105105
the separator, but the Python parsing engine can, meaning the latter will
106-
be used and automatically detect the separator by Python's builtin sniffer
107-
tool, ``csv.Sniffer``. In addition, separators longer than 1 character and
108-
different from ``'\s+'`` will be interpreted as regular expressions and
109-
will also force the use of the Python parsing engine. Note that regex
110-
delimiters are prone to ignoring quoted data. Regex example: ``'\r\t'``.
106+
be used and automatically detect the separator from only the first valid
107+
row of the file by Python's builtin sniffer tool, ``csv.Sniffer``.
108+
In addition, separators longer than 1 character and different from
109+
``'\s+'`` will be interpreted as regular expressions and will also force
110+
the use of the Python parsing engine. Note that regex delimiters are prone
111+
to ignoring quoted data. Regex example: ``'\r\t'``.
111112
delimiter : str, default ``None``
112113
Alias for sep.
113114
header : int, list of int, None, default 'infer'

0 commit comments

Comments
 (0)