From 3e942ae255db6c09ede72f1c61ea468277f54569 Mon Sep 17 00:00:00 2001 From: Daniel Saxton Date: Thu, 15 Oct 2020 21:28:43 -0500 Subject: [PATCH] NIT: Format text.rst doc code --- doc/source/user_guide/text.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index 9dd4fb68ae26a..9b1c9b8d04270 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -302,10 +302,10 @@ positional argument (a regex object) and return a string. return m.group(0)[::-1] - pd.Series( - ["foo 123", "bar baz", np.nan], - dtype="string" - ).str.replace(pat, repl, regex=True) + pd.Series(["foo 123", "bar baz", np.nan], dtype="string").str.replace( + pat, repl, regex=True + ) + # Using regex groups pat = r"(?P\w+) (?P\w+) (?P\w+)"