149
149
any numeric columns will automatically be parsed, regardless of display
150
150
format.
151
151
skip_footer : int, default 0
152
+
153
+ .. deprecated:: 0.22.0
154
+ Pass in `skipfooter` instead.
155
+ skipfooter : 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
@@ -200,6 +204,7 @@ def get_writer(engine_name):
200
204
201
205
@Appender (_read_excel_doc )
202
206
@deprecate_kwarg ("parse_cols" , "usecols" )
207
+ @deprecate_kwarg ("skip_footer" , "skipfooter" )
203
208
def read_excel (io ,
204
209
sheet_name = 0 ,
205
210
header = 0 ,
@@ -218,7 +223,7 @@ def read_excel(io,
218
223
parse_dates = False ,
219
224
date_parser = None ,
220
225
thousands = None ,
221
- skip_footer = 0 ,
226
+ skipfooter = 0 ,
222
227
convert_float = True ,
223
228
** kwds ):
224
229
@@ -251,7 +256,7 @@ def read_excel(io,
251
256
parse_dates = parse_dates ,
252
257
date_parser = date_parser ,
253
258
thousands = thousands ,
254
- skip_footer = skip_footer ,
259
+ skipfooter = skipfooter ,
255
260
convert_float = convert_float ,
256
261
** kwds )
257
262
@@ -333,7 +338,7 @@ def parse(self,
333
338
parse_dates = False ,
334
339
date_parser = None ,
335
340
thousands = None ,
336
- skip_footer = 0 ,
341
+ skipfooter = 0 ,
337
342
convert_float = True ,
338
343
** kwds ):
339
344
"""
@@ -358,7 +363,7 @@ def parse(self,
358
363
parse_dates = parse_dates ,
359
364
date_parser = date_parser ,
360
365
thousands = thousands ,
361
- skip_footer = skip_footer ,
366
+ skipfooter = skipfooter ,
362
367
convert_float = convert_float ,
363
368
** kwds )
364
369
@@ -412,14 +417,10 @@ def _parse_excel(self,
412
417
parse_dates = False ,
413
418
date_parser = None ,
414
419
thousands = None ,
415
- skip_footer = 0 ,
420
+ skipfooter = 0 ,
416
421
convert_float = True ,
417
422
** kwds ):
418
423
419
- skipfooter = kwds .pop ('skipfooter' , None )
420
- if skipfooter is not None :
421
- skip_footer = skipfooter
422
-
423
424
_validate_header_arg (header )
424
425
425
426
if 'chunksize' in kwds :
@@ -590,7 +591,7 @@ def _parse_cell(cell_contents, cell_typ):
590
591
parse_dates = parse_dates ,
591
592
date_parser = date_parser ,
592
593
thousands = thousands ,
593
- skipfooter = skip_footer ,
594
+ skipfooter = skipfooter ,
594
595
** kwds )
595
596
596
597
output [asheetname ] = parser .read (nrows = nrows )
0 commit comments