148
148
this parameter is only necessary for columns stored as TEXT in Excel,
149
149
any numeric columns will automatically be parsed, regardless of display
150
150
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.
151
155
skip_footer : int, default 0
152
156
Rows at the end to skip (0-indexed)
153
157
convert_float : boolean, default True
154
158
convert integral floats to int (i.e., 1.0 --> 1). If False, all numeric
155
159
data will be read in as floats: Excel stores all numbers as floats
156
160
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.
160
161
161
162
Returns
162
163
-------
@@ -295,9 +296,9 @@ def read_excel(io,
295
296
parse_dates = False ,
296
297
date_parser = None ,
297
298
thousands = None ,
299
+ comment = None ,
298
300
skip_footer = 0 ,
299
301
convert_float = True ,
300
- comment = None ,
301
302
** kwds ):
302
303
303
304
# Can't use _deprecate_kwarg since sheetname=None has a special meaning
@@ -329,9 +330,9 @@ def read_excel(io,
329
330
parse_dates = parse_dates ,
330
331
date_parser = date_parser ,
331
332
thousands = thousands ,
333
+ comment = comment ,
332
334
skip_footer = skip_footer ,
333
335
convert_float = convert_float ,
334
- comment = comment ,
335
336
** kwds )
336
337
337
338
@@ -412,9 +413,9 @@ def parse(self,
412
413
parse_dates = False ,
413
414
date_parser = None ,
414
415
thousands = None ,
416
+ comment = None ,
415
417
skip_footer = 0 ,
416
418
convert_float = True ,
417
- comment = None ,
418
419
** kwds ):
419
420
"""
420
421
Parse specified sheet(s) into a DataFrame
@@ -438,9 +439,9 @@ def parse(self,
438
439
parse_dates = parse_dates ,
439
440
date_parser = date_parser ,
440
441
thousands = thousands ,
442
+ comment = comment ,
441
443
skip_footer = skip_footer ,
442
444
convert_float = convert_float ,
443
- comment = comment ,
444
445
** kwds )
445
446
446
447
def _should_parse (self , i , usecols ):
@@ -493,9 +494,9 @@ def _parse_excel(self,
493
494
parse_dates = False ,
494
495
date_parser = None ,
495
496
thousands = None ,
497
+ comment = None ,
496
498
skip_footer = 0 ,
497
499
convert_float = True ,
498
- comment = None ,
499
500
** kwds ):
500
501
501
502
skipfooter = kwds .pop ('skipfooter' , None )
@@ -672,8 +673,8 @@ def _parse_cell(cell_contents, cell_typ):
672
673
parse_dates = parse_dates ,
673
674
date_parser = date_parser ,
674
675
thousands = thousands ,
675
- skipfooter = skip_footer ,
676
676
comment = comment ,
677
+ skipfooter = skip_footer ,
677
678
** kwds )
678
679
679
680
output [asheetname ] = parser .read (nrows = nrows )
0 commit comments