Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cea44a7

Browse files
committedOct 1, 2020
Fix
1 parent 6ff5955 commit cea44a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎doc/source/user_guide/text.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ positional argument (a regex object) and return a string.
314314
return m.group(0)[::-1]
315315
316316
317-
pd.Series(["foo 123", "bar baz", np.nan], dtype="string").str.replace(pat, repl, regex=True)
317+
pd.Series(
318+
["foo 123", "bar baz", np.nan],
319+
dtype="string"
320+
).str.replace(pat, repl, regex=True)
318321
319322
# Using regex groups
320323
pat = r"(?P<one>\w+) (?P<two>\w+) (?P<three>\w+)"

0 commit comments

Comments
 (0)
Please sign in to comment.