Pandas 0.18 supports read_csv zip file as argument and reading zipped csv table correctly into data frame. But when i am trying to use to_csv() method to save data frame as zipped csv, i am getting error. According to official documentation, zip format not supported in to_csv() method. Any thoughts? Thank you.
import pandas as pd
works fine
data = pd.read_csv("E:\ASML SED.zip")
error out IOError: [Errno 2] No such file or directory: 'E:\ASML SED.zip'
data.to_csv("E:\ASML SED Zipped.zip", compression = 'zip')
to_csv
supports gzip through thecompression
attribute. Why do you say it's not supported? Also some sample code would be helpful. – shawnheide