Skip to content

Commit 6921f04

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/parquet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def write(
170170
# And pass the opened s3file to the fastparquet internal impl.
171171
kwargs["open_with"] = lambda path, _: path
172172
else:
173-
path, _, _, _ = get_filepath_or_buffer(path)
173+
path, _, _, _ = get_filepath_or_buffer(path, mode="wb")
174174

175175
with catch_warnings(record=True):
176176
self.api.write(

0 commit comments

Comments
 (0)