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
153
157
.. deprecated:: 0.23.0
158
162
convert integral floats to int (i.e., 1.0 --> 1). If False, all numeric
159
163
data will be read in as floats: Excel stores all numbers as floats
160
164
internally
161
- comment : str, default None
162
- Comment out remainder of line. Character or characters to indicate comments
163
- in the input file. Any data between comment and line end is ignored.
164
165
165
166
Returns
166
167
-------
@@ -302,7 +303,6 @@ def read_excel(io,
302
303
thousands = None ,
303
304
skipfooter = 0 ,
304
305
convert_float = True ,
305
- comment = None ,
306
306
** kwds ):
307
307
308
308
# Can't use _deprecate_kwarg since sheetname=None has a special meaning
@@ -334,9 +334,13 @@ def read_excel(io,
334
334
parse_dates = parse_dates ,
335
335
date_parser = date_parser ,
336
336
thousands = thousands ,
337
+ << << << < cc8a5c2681bfc6e209968ff9eb801e55454dfead
337
338
skipfooter = skipfooter ,
338
- convert_float = convert_float ,
339
+ == == == =
339
340
comment = comment ,
341
+ skip_footer = skip_footer ,
342
+ >> >> >> > changed order of arguments
343
+ convert_float = convert_float ,
340
344
* * kwds )
341
345
342
346
@@ -417,9 +421,13 @@ def parse(self,
417
421
parse_dates = False ,
418
422
date_parser = None ,
419
423
thousands = None ,
424
+ << << << < cc8a5c2681bfc6e209968ff9eb801e55454dfead
420
425
skipfooter = 0 ,
421
- convert_float = True ,
426
+ == == == =
422
427
comment = None ,
428
+ skip_footer = 0 ,
429
+ >> >> >> > changed order of arguments
430
+ convert_float = True ,
423
431
* * kwds ):
424
432
"""
425
433
Parse specified sheet(s) into a DataFrame
@@ -443,9 +451,13 @@ def parse(self,
443
451
parse_dates = parse_dates ,
444
452
date_parser = date_parser ,
445
453
thousands = thousands ,
454
+ << << << < cc8a5c2681bfc6e209968ff9eb801e55454dfead
446
455
skipfooter = skipfooter ,
447
- convert_float = convert_float ,
456
+ == == == =
448
457
comment = comment ,
458
+ skip_footer = skip_footer ,
459
+ >> >> >> > changed order of arguments
460
+ convert_float = convert_float ,
449
461
** kwds )
450
462
451
463
def _should_parse (self , i , usecols ):
@@ -498,9 +510,13 @@ def _parse_excel(self,
498
510
parse_dates = False ,
499
511
date_parser = None ,
500
512
thousands = None ,
513
+ << << << < cc8a5c2681bfc6e209968ff9eb801e55454dfead
501
514
skipfooter = 0 ,
502
- convert_float = True ,
515
+ == == == =
503
516
comment = None ,
517
+ skip_footer = 0 ,
518
+ >> >> >> > changed order of arguments
519
+ convert_float = True ,
504
520
** kwds ):
505
521
506
522
_validate_header_arg (header )
@@ -673,7 +689,12 @@ def _parse_cell(cell_contents, cell_typ):
673
689
parse_dates = parse_dates ,
674
690
date_parser = date_parser ,
675
691
thousands = thousands ,
692
+ << << << < cc8a5c2681bfc6e209968ff9eb801e55454dfead
676
693
skipfooter = skipfooter ,
694
+ == == == =
695
+ comment = comment ,
696
+ skipfooter = skip_footer ,
697
+ > >> >> >> changed order of arguments
677
698
* * kwds )
678
699
679
700
output [asheetname ] = parser .read (nrows = nrows )
0 commit comments