Skip to content

Commit c9ffd78

Browse files
dsm054jorisvandenbossche
authored andcommitted
DOC: Fix delim_whitespace regex typo.
Minor typo in the explanation of delim_whitespace which tripped up a user on SO (although the user should probably have been using `delim_whitespace=True` directly anyhow.) Author: dsm054 <[email protected]> Closes #13165 from dsm054/fix-delim_whitespace-regex and squashes the following commits: c8f13d2 [dsm054] DOC: Fix delim_whitespace regex typo.
1 parent 4de83d2 commit c9ffd78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/io.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ delimiter : str, default ``None``
9999
Alternative argument name for sep.
100100
delim_whitespace : boolean, default False
101101
Specifies whether or not whitespace (e.g. ``' '`` or ``'\t'``)
102-
will be used as the delimiter. Equivalent to setting ``sep='\+s'``.
102+
will be used as the delimiter. Equivalent to setting ``sep='\s+'``.
103103
If this option is set to True, nothing should be passed in for the
104104
``delimiter`` parameter.
105105

pandas/io/parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
Alternative argument name for sep.
5656
delim_whitespace : boolean, default False
5757
Specifies whether or not whitespace (e.g. ``' '`` or ``'\t'``) will be
58-
used as the sep. Equivalent to setting ``sep='\+s'``. If this option
58+
used as the sep. Equivalent to setting ``sep='\s+'``. If this option
5959
is set to True, nothing should be passed in for the ``delimiter``
6060
parameter.
6161

0 commit comments

Comments
 (0)