Skip to content

Commit 5dfa9fd

Browse files
gef756jorisvandenbossche
authored andcommitted
DOC: fill in class names for rename methods (#21268)
(cherry picked from commit 7647969)
1 parent ba16de0 commit 5dfa9fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3721,7 +3721,7 @@ def rename(self, *args, **kwargs):
37213721
copy : boolean, default True
37223722
Also copy underlying data
37233723
inplace : boolean, default False
3724-
Whether to return a new %(klass)s. If True then value of copy is
3724+
Whether to return a new DataFrame. If True then value of copy is
37253725
ignored.
37263726
level : int or level name, default None
37273727
In case of a MultiIndex, only rename labels in the specified

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3269,7 +3269,7 @@ def rename(self, index=None, **kwargs):
32693269
copy : boolean, default True
32703270
Also copy underlying data
32713271
inplace : boolean, default False
3272-
Whether to return a new %(klass)s. If True then value of copy is
3272+
Whether to return a new Series. If True then value of copy is
32733273
ignored.
32743274
level : int or level name, default None
32753275
In case of a MultiIndex, only rename labels in the specified

0 commit comments

Comments
 (0)