diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..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 ------- - replaced : Series/Index of objects + Series or Index of object + A copy of the object with all matching occurrences of `pat` replaced by + `repl`. + Raises ------