Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions pandas/io/parsers/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,8 +1219,7 @@ def _get_options_with_defaults(self, engine: CSVEngine) -> dict[str, Any]:
and value != getattr(value, "value", default)
):
raise ValueError(
f"The {argname!r} option is not supported with the "
f"'pyarrow' engine"
f"The {argname!r} option is not supported with the 'pyarrow' engine"
)
options[argname] = value

Expand Down Expand Up @@ -1396,8 +1395,7 @@ def _clean_options(
if not is_integer(skiprows) and skiprows is not None:
# pyarrow expects skiprows to be passed as an integer
raise ValueError(
"skiprows argument must be an integer when using "
"engine='pyarrow'"
"skiprows argument must be an integer when using engine='pyarrow'"
)
else:
if is_integer(skiprows):
Expand Down
2 changes: 1 addition & 1 deletion pandas/util/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def find_stack_level() -> int:
try:
n = 0
while frame:
filename = inspect.getfile(frame)
filename = frame.f_code.co_filename
if filename.startswith(pkg_dir) and not filename.startswith(test_dir):
frame = frame.f_back
n += 1
Expand Down