diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0899e9cd87aba..1c7339a91c2fd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3720,7 +3720,7 @@ def rename(self, *args, **kwargs): copy : boolean, default True Also copy underlying data inplace : boolean, default False - Whether to return a new %(klass)s. If True then value of copy is + Whether to return a new DataFrame. If True then value of copy is ignored. level : int or level name, default None In case of a MultiIndex, only rename labels in the specified diff --git a/pandas/core/series.py b/pandas/core/series.py index f25f73513df30..d59401414181f 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3269,7 +3269,7 @@ def rename(self, index=None, **kwargs): copy : boolean, default True Also copy underlying data inplace : boolean, default False - Whether to return a new %(klass)s. If True then value of copy is + Whether to return a new Series. If True then value of copy is ignored. level : int or level name, default None In case of a MultiIndex, only rename labels in the specified