From 971901ea6294954dcec208a4ce25ce7bc5c840f6 Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Wed, 7 Oct 2020 21:43:32 -0700 Subject: [PATCH] DOC: make rename docs consistent Other doc text describing code end in a colon. --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 29c63b030cdd5..80e9ec5076610 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4323,7 +4323,7 @@ def rename( Traceback (most recent call last): KeyError: ['C'] not found in axis - Using axis-style parameters + Using axis-style parameters: >>> df.rename(str.lower, axis='columns') a b