Skip to content

Commit a98bd34

Browse files
Liam3851TomAugspurger
authored andcommitted
Clarify it is "regex=False" that does not work with compiled regex.
1 parent c5325ae commit a98bd34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/strings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True):
351351
Notes
352352
-----
353353
When `pat` is a compiled regex, all flags should be included in the
354-
compiled regex. Use of `case`, `flags`, or `regex` with a compiled regex
355-
will raise an error.
354+
compiled regex. Use of `case`, `flags`, or `regex=False` with a compiled
355+
regex will raise an error.
356356
357357
Examples
358358
--------

0 commit comments

Comments
 (0)