Skip to content

Commit 7511743

Browse files
committed
changed order of arguments
1 parent afc3ec3 commit 7511743

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

pandas/io/excel.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,16 @@
148148
this parameter is only necessary for columns stored as TEXT in Excel,
149149
any numeric columns will automatically be parsed, regardless of display
150150
format.
151+
comment : str, default None
152+
Comment out remainder of line. Pass a character or characters to this
153+
argument to indicate comments in the input file. Any data between the
154+
comment string and the end of the current line is ignored.
151155
skip_footer : int, default 0
152156
Rows at the end to skip (0-indexed)
153157
convert_float : boolean, default True
154158
convert integral floats to int (i.e., 1.0 --> 1). If False, all numeric
155159
data will be read in as floats: Excel stores all numbers as floats
156160
internally
157-
comment : str, default None
158-
Comment out remainder of line. Character or characters to indicate comments
159-
in the input file. Any data between comment and line end is ignored.
160161
161162
Returns
162163
-------
@@ -295,9 +296,9 @@ def read_excel(io,
295296
parse_dates=False,
296297
date_parser=None,
297298
thousands=None,
299+
comment=None,
298300
skip_footer=0,
299301
convert_float=True,
300-
comment=None,
301302
**kwds):
302303

303304
# Can't use _deprecate_kwarg since sheetname=None has a special meaning
@@ -329,9 +330,9 @@ def read_excel(io,
329330
parse_dates=parse_dates,
330331
date_parser=date_parser,
331332
thousands=thousands,
333+
comment=comment,
332334
skip_footer=skip_footer,
333335
convert_float=convert_float,
334-
comment=comment,
335336
**kwds)
336337

337338

@@ -412,9 +413,9 @@ def parse(self,
412413
parse_dates=False,
413414
date_parser=None,
414415
thousands=None,
416+
comment=None,
415417
skip_footer=0,
416418
convert_float=True,
417-
comment=None,
418419
**kwds):
419420
"""
420421
Parse specified sheet(s) into a DataFrame
@@ -438,9 +439,9 @@ def parse(self,
438439
parse_dates=parse_dates,
439440
date_parser=date_parser,
440441
thousands=thousands,
442+
comment=comment,
441443
skip_footer=skip_footer,
442444
convert_float=convert_float,
443-
comment=comment,
444445
**kwds)
445446

446447
def _should_parse(self, i, usecols):
@@ -493,9 +494,9 @@ def _parse_excel(self,
493494
parse_dates=False,
494495
date_parser=None,
495496
thousands=None,
497+
comment=None,
496498
skip_footer=0,
497499
convert_float=True,
498-
comment=None,
499500
**kwds):
500501

501502
skipfooter = kwds.pop('skipfooter', None)
@@ -672,8 +673,8 @@ def _parse_cell(cell_contents, cell_typ):
672673
parse_dates=parse_dates,
673674
date_parser=date_parser,
674675
thousands=thousands,
675-
skipfooter=skip_footer,
676676
comment=comment,
677+
skipfooter=skip_footer,
677678
**kwds)
678679

679680
output[asheetname] = parser.read(nrows=nrows)

0 commit comments

Comments
 (0)