Skip to content

Commit 95b9c2f

Browse files
bessarabovjreback
authored andcommitted
Fixing 'names' doc for 'read_csv' (#30109)
1 parent 0bde512 commit 95b9c2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/parsers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@
119119
``skip_blank_lines=True``, so ``header=0`` denotes the first line of
120120
data rather than the first line of the file.
121121
names : array-like, optional
122-
List of column names to use. If file contains no header row, then you
123-
should explicitly pass ``header=None``. Duplicates in this list are not
124-
allowed.
122+
List of column names to use. If the file contains a header row,
123+
then you should explicitly pass ``header=0`` to override the column names.
124+
Duplicates in this list are not allowed.
125125
index_col : int, str, sequence of int / str, or False, default ``None``
126126
Column(s) to use as the row labels of the ``DataFrame``, either given as
127127
string name or column index. If a sequence of int / str is given, a

0 commit comments

Comments
 (0)