-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
BUG: DataFrame to_csv compression with 'zip' use zipfilename as archive name #39465
Comments
Do you want to create a PR to remove the ".zip" suffix? If you need a workaround:
are you using 1.2.1? #38714 |
now i'm using 1.2.1,i add a pr(#39647 ) to do some work with the name problem,but not the large dataframe problem |
do you still have the issue with the large dataframe when using 1.2.1? |
Is this different than #26023? |
same purpose, but my PR#40387 will take "myfile" as archive_name when "myfile.zip" used as zipfile name,just like gzip or xz. It won't add ".csv" to the end of "myfile" automatically. |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Problem description
when use gzip method, the function works fine, a.to_csv('myfile.csv.gz') will create a gzip file with an archive file named myfile.csv.
the "zip" method works bad,a.to_csv('myfile.csv.zip') will create a zipfile with an archive file named myfile.csv.zip
The text was updated successfully, but these errors were encountered: