Skip to content

Commit af5d1ce

Browse files
committed
Update readers.py
1 parent 2c2adb9 commit af5d1ce

File tree

1 file changed

+17
-28
lines changed

1 file changed

+17
-28
lines changed

pandas/io/parsers/readers.py

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,14 @@ def read_csv(
463463
then you should explicitly pass ``header=0`` to override the column names.
464464
Duplicates in this list are not allowed.
465465
index_col : Hashable, Sequence of Hashable or False, optional
466-
Column(s) to use as row label(s), denoted either by column labels or column
467-
indices. If a sequence of labels or indices is given,
468-
:class:`~pandas.MultiIndex`
469-
will be formed for the row labels.
470-
471-
Note: ``index_col=False`` can be used to force pandas to *not* use the first
472-
column as the index, e.g., when you have a malformed file with delimiters at
473-
the end of each line.
466+
Column(s) to use as row label(s), denoted either by column labels or column
467+
indices. If a sequence of labels or indices is given,
468+
:class:`~pandas.MultiIndex`
469+
will be formed for the row labels.
470+
471+
Note: ``index_col=False`` can be used to force pandas to *not* use the first
472+
column as the index, e.g., when you have a malformed file with delimiters at
473+
the end of each line.
474474
usecols : Sequence of Hashable or Callable, optional
475475
Subset of columns to select, denoted either
476476
by column labels or column indices.
@@ -733,12 +733,6 @@ def read_csv(
733733
/generated/pyarrow.csv.ParseOptions.html
734734
#pyarrow.csv.ParseOptions.invalid_row_handler>`_.
735735
736-
.. versionadded:: 1.3.0
737-
738-
.. versionadded:: 1.4.0
739-
740-
Callable
741-
742736
.. versionchanged:: 2.2.0
743737
744738
Callable for ``engine='pyarrow'``
@@ -1051,13 +1045,14 @@ def read_table(
10511045
then you should explicitly pass ``header=0`` to override the column names.
10521046
Duplicates in this list are not allowed.
10531047
index_col : Hashable, Sequence of Hashable or False, optional
1054-
Column(s) to use as row label(s), denoted either by column labels or column
1055-
indices. If a sequence of labels or indices is given, :class:`~pandas.MultiIndex`
1056-
will be formed for the row labels.
1057-
1058-
Note: ``index_col=False`` can be used to force pandas to *not* use the first
1059-
column as the index, e.g., when you have a malformed file with delimiters at
1060-
the end of each line.
1048+
Column(s) to use as row label(s), denoted either by column labels or column
1049+
indices. If a sequence of labels or indices is given,
1050+
:class:`~pandas.MultiIndex`
1051+
will be formed for the row labels.
1052+
1053+
Note: ``index_col=False`` can be used to force pandas to *not* use the first
1054+
column as the index, e.g., when you have a malformed file with delimiters at
1055+
the end of each line.
10611056
usecols : Sequence of Hashable or Callable, optional
10621057
Subset of columns to select, denoted either by column labels or column indices.
10631058
If list-like, all elements must either
@@ -1317,13 +1312,7 @@ def read_table(
13171312
python/generated/pyarrow.csv.ParseOptions.html
13181313
#pyarrow.csv.ParseOptions.invalid_row_handler>`_.
13191314
1320-
.. versionadded:: 1.3.0
1321-
1322-
.. versionadded:: 1.4.0
1323-
1324-
Callable
1325-
1326-
.. versionchanged:: 2.2.0
1315+
.. versionadded:: 2.2.0
13271316
13281317
Callable for ``engine='pyarrow'``
13291318

0 commit comments

Comments
 (0)