Skip to content

Commit 8974b50

Browse files
committed
Fix FastParquetImpl.write for non-existent file
1 parent 2d65e38 commit 8974b50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/parquet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from pandas import DataFrame, get_option
99

10-
from pandas.io.common import get_filepath_or_buffer, is_s3_url
10+
from pandas.io.common import get_filepath_or_buffer, is_gcs_url, is_s3_url
1111

1212

1313
def get_engine(engine):
@@ -162,7 +162,7 @@ def write(
162162
if partition_cols is not None:
163163
kwargs["file_scheme"] = "hive"
164164

165-
if is_s3_url(path):
165+
if is_s3_url(path) or is_gcs_url(path):
166166
# path is s3:// so we need to open the s3file in 'wb' mode.
167167
# TODO: Support 'ab'
168168

0 commit comments

Comments
 (0)