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 0f0ac4e commit f05dec5Copy full SHA for f05dec5
pandas/io/common.py
@@ -584,6 +584,9 @@ 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:
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)
591
if not isinstance(filepath_or_buffer, str):
592
# Cannot infer compression of a buffer, assume no compression
0 commit comments