Skip to content

Commit 8c40f23

Browse files
authored
Fix issue pandas-dev#36271 to disambiguate json string
pd.read_json() fails currently for strings that look like fsspec_url and contain "://". adding another condition to fix this at least in most cases
1 parent 6aa311d commit 8c40f23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/io/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def is_fsspec_url(url: FilePathOrBuffer) -> bool:
161161
return (
162162
isinstance(url, str)
163163
and "://" in url
164+
and not " " in url
164165
and not url.startswith(("http://", "https://"))
165166
)
166167

0 commit comments

Comments
 (0)