From 0000c8d669fff7b6f2983a043a525e196516efa1 Mon Sep 17 00:00:00 2001 From: David Valente Date: Sat, 1 Sep 2018 13:41:20 +0200 Subject: [PATCH 1/2] Deleted 'replaced' from Returns docstring --- pandas/core/strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..1c6549e6d0c62 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -558,7 +558,7 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True): Returns ------- - replaced : Series/Index of objects + Series/Index of objects Raises ------ From 0c1193a298ecdfbea025bf84a8c16ba9ec9250cb Mon Sep 17 00:00:00 2001 From: David Valente Date: Sat, 1 Sep 2018 14:24:15 +0200 Subject: [PATCH 2/2] Added Returns description --- pandas/core/strings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 1c6549e6d0c62..79122a677fd09 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -558,7 +558,10 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True): Returns ------- - Series/Index of objects + Series or Index of object + A copy of the object with all matching occurrences of `pat` replaced by + `repl`. + Raises ------