-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
IO CSVread_csv, to_csvread_csv, to_csvOutput-Formatting__repr__ of pandas objects, to_string__repr__ of pandas objects, to_string
Milestone
Description
Code at issue
with open(outputfile, "w") as file_handle: df2.to_csv(file_handle, compression='gzip')Problem description
The written file is not gzip compressed.
Expected Output
The output should be a gzip compressed csv file. Similar to what is obtained when using:
df2.to_csv('/path/to/file.csv.gz',compression='gzip')Metadata
Metadata
Assignees
Labels
IO CSVread_csv, to_csvread_csv, to_csvOutput-Formatting__repr__ of pandas objects, to_string__repr__ of pandas objects, to_string