Skip to content

Commit cc9b6bf

Browse files
added names parameter in read_excel
1 parent a050a33 commit cc9b6bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/io/excel.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_writer(engine_name):
7171
raise ValueError("No Excel writer '%s'" % engine_name)
7272

7373
def read_excel(io, sheetname=0, header=0, skiprows=None, skip_footer=0,
74-
index_col=None, parse_cols=None, parse_dates=False,
74+
index_col=None, names=None, parse_cols=None, parse_dates=False,
7575
date_parser=None, na_values=None, thousands=None,
7676
convert_float=True, has_index_names=None, converters=None,
7777
engine=None, **kwds):
@@ -116,6 +116,9 @@ def read_excel(io, sheetname=0, header=0, skiprows=None, skip_footer=0,
116116
Column (0-indexed) to use as the row labels of the DataFrame.
117117
Pass None if there is no such column. If a list is passed,
118118
those columns will be combined into a ``MultiIndex``
119+
names : array-like, default None
120+
List of column names to use. If file contains no header row,
121+
then you should explicitly pass header=None
119122
converters : dict, default None
120123
Dict of functions for converting values in certain columns. Keys can
121124
either be integers or column labels, values are functions that take one

0 commit comments

Comments
 (0)