Skip to content

Commit fdac1a3

Browse files
committed
Merge branch 'fix-pyarrow-regex-group-replace' into fix/regex-group-arrow
2 parents ea75dd7 + 80eeb63 commit fdac1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/_arrow_string_mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _str_replace(
175175
or flags
176176
or (
177177
isinstance(repl, str)
178-
and (r"\g<" in repl or re.search(r"\\\d", repl) is not None)
178+
and r"\g<" in repl # Block named group references (\g<name>); numeric groups (\1) are supported by PyArrow
179179
)
180180
):
181181
raise NotImplementedError(

0 commit comments

Comments
 (0)