Skip to content

Commit 7b31cbc

Browse files
authored
NIT: Format text.rst doc code (#37168)
1 parent 58dcafa commit 7b31cbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/source/user_guide/text.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ positional argument (a regex object) and return a string.
302302
return m.group(0)[::-1]
303303
304304
305-
pd.Series(
306-
["foo 123", "bar baz", np.nan],
307-
dtype="string"
308-
).str.replace(pat, repl, regex=True)
305+
pd.Series(["foo 123", "bar baz", np.nan], dtype="string").str.replace(
306+
pat, repl, regex=True
307+
)
308+
309309
310310
# Using regex groups
311311
pat = r"(?P<one>\w+) (?P<two>\w+) (?P<three>\w+)"

0 commit comments

Comments
 (0)