@@ -306,8 +306,6 @@ def astype(self, dtype, copy: bool = True):
306
306
_str_slice_replace = ArrowStringArrayMixin ._str_slice_replace
307
307
_str_len = ArrowStringArrayMixin ._str_len
308
308
309
- _rank = ArrowExtensionArray ._rank
310
-
311
309
def _str_contains (
312
310
self , pat , case : bool = True , flags : int = 0 , na = np .nan , regex : bool = True
313
311
):
@@ -343,7 +341,9 @@ def _str_replace(
343
341
fallback_performancewarning ()
344
342
return super ()._str_replace (pat , repl , n , case , flags , regex )
345
343
346
- return ArrowExtensionArray ._str_replace (self , pat , repl , n , case , flags , regex )
344
+ return ArrowStringArrayMixin ._str_replace (
345
+ self , pat , repl , n , case , flags , regex
346
+ )
347
347
348
348
def _str_repeat (self , repeats : int | Sequence [int ]):
349
349
if not isinstance (repeats , int ):
@@ -360,7 +360,7 @@ def _str_slice(
360
360
361
361
def _str_removeprefix (self , prefix : str ):
362
362
if not pa_version_under13p0 :
363
- return ArrowExtensionArray ._str_removeprefix (self , prefix )
363
+ return ArrowStringArrayMixin ._str_removeprefix (self , prefix )
364
364
return super ()._str_removeprefix (prefix )
365
365
366
366
def _str_count (self , pat : str , flags : int = 0 ):
0 commit comments