From ba0cff32c01905a45a0b60e27f9febd3ff02b0bc Mon Sep 17 00:00:00 2001 From: Ivan Bessarabov Date: Fri, 6 Dec 2019 18:50:10 +0300 Subject: [PATCH] Fixing 'names' doc for 'read_csv' --- pandas/io/parsers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 7403e6d254d03..aeade1d5ed2c2 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -119,9 +119,9 @@ ``skip_blank_lines=True``, so ``header=0`` denotes the first line of data rather than the first line of the file. names : array-like, optional - List of column names to use. If file contains no header row, then you - should explicitly pass ``header=None``. Duplicates in this list are not - allowed. + List of column names to use. If the file contains a header row, + then you should explicitly pass ``header=0`` to override the column names. + Duplicates in this list are not allowed. index_col : int, str, sequence of int / str, or False, default ``None`` Column(s) to use as the row labels of the ``DataFrame``, either given as string name or column index. If a sequence of int / str is given, a