Skip to content

Commit fdbc768

Browse files
committed
DOC: Add documentation for delim_whitespace
Addresses DOC issue part of pandas-devgh-12912.
1 parent 1617244 commit fdbc768

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

doc/source/io.rst

+6
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ sep : str, defaults to ``','`` for :func:`read_csv`, ``\t`` for :func:`read_tabl
9797
Regex example: ``'\\r\\t'``.
9898
delimiter : str, default ``None``
9999
Alternative argument name for sep.
100+
delim_whitespace : boolean, default False
101+
Specifies whether or not whitespace (e.g. ``' '`` or ``'\t'``)
102+
will be used as the delimiter. Equivalent to setting ``sep='\+s'``.
103+
If this option is set to True, nothing should be passed in for the
104+
``delimiter`` parameter. This parameter is currently supported for
105+
the C parser only.
100106

101107
Column and Index Locations and Names
102108
++++++++++++++++++++++++++++++++++++

pandas/io/parsers.py

+5
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@
209209
warn_bad_lines : boolean, default True
210210
If error_bad_lines is False, and warn_bad_lines is True, a warning for each
211211
"bad line" will be output. (Only valid with C parser).
212+
delim_whitespace : boolean, default False
213+
Specifies whether or not whitespace (e.g. ``' '`` or ``'\t'``) will be used
214+
as the delimiter. Equivalent to setting ``sep='\+s'``. If this option is set
215+
to True, nothing should be passed in for the ``delimiter`` parameter. This
216+
parameter is currently supported for the C parser only.
212217
213218
Returns
214219
-------

0 commit comments

Comments
 (0)