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 66b1e90 commit 942713aCopy full SHA for 942713a
pandas/io/parsers/python_parser.py
@@ -34,6 +34,7 @@
34
ParserError,
35
)
36
37
+from pandas.core.dtypes.common import is_integer
38
from pandas.core.dtypes.inference import is_dict_like
39
40
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