From d6791c852ca76f4faaedeac4005e0bf2ef97ca4e Mon Sep 17 00:00:00 2001 From: Gabe Fernando Date: Thu, 31 May 2018 00:47:19 -0400 Subject: [PATCH] DOC: fill in class names for rename methods --- pandas/core/frame.py | 2 +- pandas/core/series.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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