Skip to content

Commit c024d73

Browse files
author
Lily Fahey
committed
pandas-dev#47030: update inplace docs
1 parent 9222cb0 commit c024d73

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/core/frame.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5155,8 +5155,7 @@ def rename(
51555155
copy : bool, default True
51565156
Also copy underlying data.
51575157
inplace : bool, default False
5158-
Whether to return a new DataFrame. If True then value of copy is
5159-
ignored.
5158+
Whether to modify the DataFrame rather than creating a new one.
51605159
level : int or level name, default None
51615160
In case of a MultiIndex, only rename labels in the specified
51625161
level.

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ def set_axis(self, labels, axis: Axis = 0, inplace: bool_t = False):
730730
The axis to update. The value 0 identifies the rows%(axis_description_sub)s.
731731
732732
inplace : bool, default False
733-
Whether to return a new %(klass)s instance.
733+
Whether to modify the %(klass)s instance rather than creating a new one.
734734
735735
Returns
736736
-------

0 commit comments

Comments
 (0)