We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e398e commit 2940b01Copy full SHA for 2940b01
pandas/io/parsers/python_parser.py
@@ -29,6 +29,7 @@
29
ParserError,
30
)
31
32
+from pandas.core.dtypes.common import is_integer
33
from pandas.core.dtypes.inference import is_dict_like
34
35
from pandas.io.common import (
@@ -1341,9 +1342,10 @@ def _validate_skipfooter_arg(skipfooter: int) -> int:
1341
1342
------
1343
ValueError : 'skipfooter' was not a non-negative integer.
1344
"""
- if not isinstance(skipfooter, int):
1345
+ if not is_integer(skipfooter):
1346
raise ValueError("skipfooter must be an integer")
1347
1348
+ skipfooter = cast(int, skipfooter)
1349
if skipfooter < 0:
1350
raise ValueError("skipfooter cannot be negative")
1351
0 commit comments