Saving Pandas DataFrame as zipped csv
To save a Pandas DataFrame as a zipped csv, use the
to_csv(~) method with
This will save a file called
my_file as a compressed csv in the same directory as this Python script.
It is often good practise to include
csv in the file name as well to indicate that this is a compressed csv file: