Skip to content

Commit 7647969

Browse files
gef756jreback
authored andcommitted
DOC: fill in class names for rename methods (pandas-dev#21268)
1 parent e1b6cbf commit 7647969

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
@@ -3720,7 +3720,7 @@ def rename(self, *args, **kwargs):
37203720
copy : boolean, default True
37213721
Also copy underlying data
37223722
inplace : boolean, default False
3723-
Whether to return a new %(klass)s. If True then value of copy is
3723+
Whether to return a new DataFrame. If True then value of copy is
37243724
ignored.
37253725
level : int or level name, default None
37263726
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)