-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Enhancement dataframe to csv use zip method #39662
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
Closed
CyberQin
wants to merge
27
commits into
pandas-dev:master
from
CyberQin:enhancement_dataframe_to_csv_use_zip_method
Closed
Changes from 8 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
864f372
Merge pull request #1 from pandas-dev/master
CyberQin 52b8869
enhancement to dataframe to_csv zip method,add this step to perform l…
CyberQin 40af498
fix test test_to_csv_zip_arguments
CyberQin f69cb82
test_to_csv_compression_encoding_gcs
CyberQin 3a4fb92
fix pre-commit test failed
CyberQin 6b1314d
fix pre-commit test failed
CyberQin 2343eb4
try fix ci errors
CyberQin 127b255
Merge remote-tracking branch 'upstream/master' into enhancement_dataf…
CyberQin e238b76
Merge pull request #2 from pandas-dev/master
CyberQin 2b5c645
add test for to_csv with filename=='xxxx.csv.zip',filename in zipfile…
CyberQin 8bd2619
add test for to_csv with filename=='xxxx.csv.zip',filename in zipfile…
CyberQin a2504d0
Merge remote-tracking branch 'origin/enhancement_dataframe_to_csv_use…
CyberQin f9a97bd
pre-commit-fix
CyberQin 9dea00a
pre-commit-fix2
CyberQin e20c663
pre-commit-fix3
CyberQin ebb298d
enhancement to dataframe to_csv zip method,add this step to perform l…
CyberQin 437510c
fix test test_to_csv_zip_arguments
CyberQin 5ce7650
test_to_csv_compression_encoding_gcs
CyberQin 4cfd964
fix pre-commit test failed
CyberQin 7c1bad8
fix pre-commit test failed
CyberQin def0289
try fix ci errors
CyberQin 799a2d5
add test for to_csv with filename=='xxxx.csv.zip',filename in zipfile…
CyberQin 86ad72f
pre-commit-fix
CyberQin 0644612
pre-commit-fix2
CyberQin 2b138b6
pre-commit-fix3
CyberQin 958f088
pre-commit-fix5
CyberQin f21de23
Merge remote-tracking branch 'origin/enhancement_dataframe_to_csv_use…
CyberQin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably better to replace
os.path.basename
withstringify_path
(to handle PathLike objects). That might also fix the failingtest_to_csv_compression_encoding_gcs
test.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its strange that this test passed on my win10 laptop.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, you probably still need
basename
to avoid having the entire path within the archiveThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert to
os.path.basename
, but start get different ci errors, does my commit affect it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a small test case. For example, write a compressed CSV file and then open it with zipfile.ZipFile to check the name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add test case and finish pre commit, a new PR is opened #40387