Skip to content

DOC: Unclear documentation of inplace parameter for rename function. #23105

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
wants to merge 2 commits into from
Closed

DOC: Unclear documentation of inplace parameter for rename function. #23105

wants to merge 2 commits into from

Conversation

subhrm
Copy link

@subhrm subhrm commented Oct 12, 2018

@pep8speaks
Copy link

pep8speaks commented Oct 12, 2018

Hello @subhrm! Thanks for updating the PR.

Comment last updated on October 12, 2018 at 12:36 Hours UTC

@codecov
Copy link

codecov bot commented Oct 12, 2018

Codecov Report

Merging #23105 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #23105      +/-   ##
==========================================
+ Coverage    92.2%    92.2%   +<.01%     
==========================================
  Files         169      169              
  Lines       50924    50944      +20     
==========================================
+ Hits        46952    46972      +20     
  Misses       3972     3972
Flag Coverage Δ
#multiple 90.62% <ø> (ø) ⬆️
#single 42.29% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/frame.py 97.11% <ø> (ø) ⬆️
pandas/core/generic.py 96.65% <ø> (ø) ⬆️
pandas/core/arrays/categorical.py 95.62% <0%> (ø) ⬆️
pandas/core/series.py 93.76% <0%> (+0.01%) ⬆️
pandas/core/arrays/base.py 95.94% <0%> (+0.05%) ⬆️
pandas/core/arrays/integer.py 94.9% <0%> (+0.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8ce3d0...049661d. Read the comment docs.

Whether to return a new DataFrame. If True then value of copy is
ignored.
Modify the DataFrame in place (do not create a new object).
If True then value of copy is ignored.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think the new sentence is technically correct. The inplace parameter is misleading, and in many cases the DataFrame is not modified in place, but creating a copy that is assigned to the same variable.

Can you take a look at the parameter inplace of other methods and see what is being used there. It'd be nice to unify them actually (not in this PR).

@WillAyd
Copy link
Member

WillAyd commented Nov 24, 2018

Closing as stale and not sure this is a large enough improvement anyway. Please refer back to the original issue if you'd like to continue conversation going forward

@WillAyd WillAyd closed this Nov 24, 2018
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.

Unclear documentation of inplace parameter for pandas.DataFrame.rename.
4 participants