Skip to content
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

DEPR: make arguments keyword only in to_dict #54630

Merged
merged 15 commits into from
Aug 22, 2023

Conversation

rsm-23
Copy link
Contributor

@rsm-23 rsm-23 commented Aug 18, 2023

@rsm-23 rsm-23 changed the title make arguments keyword only DEPR: make arguments keyword only Aug 18, 2023
@rsm-23 rsm-23 changed the title DEPR: make arguments keyword only DEPR: make arguments keyword only in to_dict Aug 18, 2023
@rsm-23 rsm-23 marked this pull request as ready for review August 19, 2023 08:55
@@ -2005,25 +2009,25 @@ def to_dict(

You can specify the return orientation.

>>> df.to_dict('series')
>>> df.to_dict(orient='series')
Copy link
Member

Choose a reason for hiding this comment

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

We could also keep allowing just orient as positional only keyword, given how we have been using that ourselves in the docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, should I make that change then?

Copy link
Contributor Author

@rsm-23 rsm-23 Aug 21, 2023

Choose a reason for hiding this comment

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

@jorisvandenbossche should I remove the keyword orient from the examples and tests as well?

@mroeschke mroeschke added the Deprecate Functionality to remove in pandas label Aug 21, 2023
@rsm-23
Copy link
Contributor Author

rsm-23 commented Aug 21, 2023

@mroeschke should I remove the * and add the deprecation decorator here as well?

@mroeschke
Copy link
Member

Yes

@rsm-23
Copy link
Contributor Author

rsm-23 commented Aug 22, 2023

@jorisvandenbossche @mroeschke I am done with the changes.

@mroeschke mroeschke added this to the 2.2 milestone Aug 22, 2023
@mroeschke mroeschke merged commit b4b96fb into pandas-dev:main Aug 22, 2023
32 of 33 checks passed
@mroeschke
Copy link
Member

Thanks @rsm-23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants