Skip to content

Commit cbab096

Browse files
committed
Move fix into _str_contains of ArrowExtensionArray
1 parent 9f06042 commit cbab096

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,9 +2455,8 @@ def _str_contains(self, pat, case=True, flags=0, na=lib.no_default, regex=True):
24552455
pat = pat.pattern
24562456
regex = True
24572457
elif flags != 0:
2458-
raise NotImplementedError(
2459-
"ArrowExtensionArray does not support str.contains() with flags "
2460-
"for string patterns"
2458+
return BaseStringArrayMethods._str_contains(
2459+
self, pat, case, flags, na, regex
24612460
)
24622461

24632462
try:

0 commit comments

Comments
 (0)