Skip to content

Commit 84b8db9

Browse files
committed
Add doc for **kwds and clean up docstrings
1 parent 15aa9d1 commit 84b8db9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pandas/io/parsers.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,24 @@
8787
e.g. [0,1,3]. Intervening rows that are not specified will be
8888
skipped (e.g. 2 in this example is skipped). Note that this
8989
parameter ignores commented lines and empty lines if
90-
``skip_blank_lines=True``, so header=0 denotes the first line of
90+
``skip_blank_lines=True``, so ``header=0`` denotes the first line of
9191
data rather than the first line of the file.
9292
names : array-like, default None
9393
List of column names to use. If file contains no header row, then you
94-
should explicitly pass header=None. Duplicates in this list will cause
94+
should explicitly pass ``header=None``. Duplicates in this list will cause
9595
a ``UserWarning`` to be issued.
9696
index_col : int or sequence or False, default None
9797
Column to use as the row labels of the DataFrame. If a sequence is given, a
9898
MultiIndex is used. If you have a malformed file with delimiters at the end
99-
of each line, you might consider index_col=False to force pandas to _not_
100-
use the first column as the index (row names).
99+
of each line, you might consider ``index_col=False`` to force pandas to
100+
not use the first column as the index (row names).
101101
usecols : list-like or callable, default None
102102
Return a subset of the columns. If list-like, all elements must either
103103
be positional (i.e. integer indices into the document columns) or strings
104104
that correspond to column names provided either by the user in `names` or
105105
inferred from the document header row(s). For example, a valid list-like
106-
`usecols` parameter would be [0, 1, 2] or ['foo', 'bar', 'baz']. Element
107-
order is ignored, so ``usecols=[0, 1]`` is the same as ``[1, 0]``.
106+
`usecols` parameter would be ``[0, 1, 2]`` or ``['foo', 'bar', 'baz']``.
107+
Element order is ignored, so ``usecols=[0, 1]`` is the same as ``[1, 0]``.
108108
To instantiate a DataFrame from ``data`` with element order preserved use
109109
``pd.read_csv(data, usecols=['foo', 'bar'])[['foo', 'bar']]`` for columns
110110
in ``['foo', 'bar']`` order or
@@ -357,6 +357,8 @@
357357
Characters to consider as filler characters in the fixed-width file.
358358
Can be used to specify the filler character of the fields
359359
if it is not spaces (e.g., '~').
360+
**kwds : optional
361+
All the following keyword arguments can be passed.
360362
"""
361363

362364

0 commit comments

Comments
 (0)