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 f05dec5 commit cb94060Copy full SHA for cb94060
pandas/io/common.py
@@ -584,7 +584,7 @@ def infer_compression(
584
# Infer compression
585
if compression == "infer":
586
# Convert all path types (e.g. pathlib.Path) to strings
587
- if "::" in filepath_or_buffer:
+ if isinstance(filepath_or_buffer, str) and "::" in filepath_or_buffer:
588
# chained URLs contain ::
589
filepath_or_buffer = filepath_or_buffer.split("::")[0]
590
filepath_or_buffer = stringify_path(filepath_or_buffer, convert_file_like=True)
0 commit comments