Skip to content

Commit 8a5d143

Browse files
fix pep8
1 parent 0b90518 commit 8a5d143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=None):
551551

552552
is_compiled_re = is_re(pat)
553553
if not is_compiled_re and regex is None:
554-
if len(pat) == 1 and re.findall("\W", pat):
554+
if len(pat) == 1 and re.findall(r"\W", pat):
555555
regex = False
556556
warnings.warn(f"{pat} is interpreted as a literal in default, "
557557
f"not regex. The default will change in the future",

0 commit comments

Comments
 (0)