-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
WIP/DEPR: Deprecate inplace=True #24063
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
Conversation
Hello @datapythonista! Thanks for submitting the PR.
|
@@ -1136,7 +1136,11 @@ def reset_index(self, level=None, drop=False, name=None, inplace=False): | |||
values. Uses ``self.name`` by default. This argument is ignored | |||
when `drop` is True. | |||
inplace : bool, default False | |||
Modify the Series in place (do not create a new object). | |||
Update the caller instead of returning a new object. |
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.
maybe want to update the Returns to say that inplace returns None
Update the caller instead of returning a new object. | ||
|
||
.. deprecated:: 0.24.0 | ||
Use ``s = s.reset_index()`` instead of |
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.
looks ok, is this how we do it elsewhere?
Codecov Report
@@ Coverage Diff @@
## master #24063 +/- ##
===========================================
- Coverage 92.31% 42.44% -49.87%
===========================================
Files 161 161
Lines 51562 51565 +3
===========================================
- Hits 47599 21887 -25712
- Misses 3963 29678 +25715
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #24063 +/- ##
===========================================
- Coverage 92.31% 42.44% -49.87%
===========================================
Files 161 161
Lines 51562 51565 +3
===========================================
- Hits 47599 21887 -25712
- Misses 3963 29678 +25715
Continue to review full report at Codecov.
|
Closing this for now, will reopen if makes sense after we finish discussing #16529. |
git diff upstream/master -u -- "*.py" | flake8 --diff
@jreback can you take a look and let me know if you're happy with the way I'm deprecating
inplace=True
here? I need to repeat the same lots of time, so would be nice to have any changes requested here, and not when they need to be repeated 100 times. :)