Skip to content

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