Skip to content

Commit

Permalink
Clarify it is "regex=False" that does not work with compiled regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam3851 authored and TomAugspurger committed Feb 27, 2018
1 parent c5325ae commit a98bd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True):
Notes
-----
When `pat` is a compiled regex, all flags should be included in the
compiled regex. Use of `case`, `flags`, or `regex` with a compiled regex
will raise an error.
compiled regex. Use of `case`, `flags`, or `regex=False` with a compiled
regex will raise an error.
Examples
--------
Expand Down

0 comments on commit a98bd34

Please sign in to comment.