@@ -306,8 +306,6 @@ def astype(self, dtype, copy: bool = True):
306306 _str_slice_replace = ArrowStringArrayMixin ._str_slice_replace
307307 _str_len = ArrowStringArrayMixin ._str_len
308308
309- _rank = ArrowExtensionArray ._rank
310-
311309 def _str_contains (
312310 self , pat , case : bool = True , flags : int = 0 , na = np .nan , regex : bool = True
313311 ):
@@ -343,7 +341,9 @@ def _str_replace(
343341 fallback_performancewarning ()
344342 return super ()._str_replace (pat , repl , n , case , flags , regex )
345343
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+ )
347347
348348 def _str_repeat (self , repeats : int | Sequence [int ]):
349349 if not isinstance (repeats , int ):
@@ -360,7 +360,7 @@ def _str_slice(
360360
361361 def _str_removeprefix (self , prefix : str ):
362362 if not pa_version_under13p0 :
363- return ArrowExtensionArray ._str_removeprefix (self , prefix )
363+ return ArrowStringArrayMixin ._str_removeprefix (self , prefix )
364364 return super ()._str_removeprefix (prefix )
365365
366366 def _str_count (self , pat : str , flags : int = 0 ):
0 commit comments