Skip to content

GH1174 more precise kwargs in DataFrame.to_clipboard #1195

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

Merged
merged 3 commits into from
Apr 24, 2025

Conversation

yangdanny97
Copy link
Contributor

This PR types the keyword parameters in DataFrame.to_clipboard according to to_csv

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to copy the arguments from to_csv(), use what is in frame.pyi, not what is in the source code.

Also, add tests for some of the to_csv() arguments with to_clipboard(), in test_io.py:test_clipboard()

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to copy the arguments from to_csv(), use what is in generic.pyi, not what is in the source code.

Also, add tests for some of the to_csv() arguments with to_clipboard(), in test_io.py:test_clipboard()

I think it would be better to delete to_clipboard() from frame.pyi and series.pyi and just create the single definition in generic.pyi.

@yangdanny97 yangdanny97 requested a review from Dr-Irv April 23, 2025 13:16
Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yangdanny97

@Dr-Irv Dr-Irv merged commit 75273f1 into pandas-dev:main Apr 24, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

type kwargs in DataFrame.to_clipboard according to to_csv
2 participants