-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Why isn't zip compression included for read_csv? #11413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
well you can simply use I suppose in theory this could be implemented, but easy enough to wrap it. I'll mark this an an enhancement issue if you'd like to work on it. |
I thought I suppose this approach would require there to be only one file in the |
IIRC you can always do
to do it anyhow. http://pandas.pydata.org/pandas-docs/stable/contributing.html are the contributing docs |
A zip file can contains many csv files, folders, and other files- and is closer to a file system with compression than a compressed file. IMO it isn't practical to add support for zip files in any generic way. The simplest way is for the user to pass a buffer-like object from the zip to read csv. One could add the special case where a zip contains a single csv file in the root of the zip, but this is far from zip "support". |
Right now we can read .zip but not write .zip files, any plans to include write to .zip? |
Is there a reason why the compression options for read_csv and other IO functions don't include zip?
The text was updated successfully, but these errors were encountered: