|
56 | 56 | ArrayLike,
|
57 | 57 | AxisInt,
|
58 | 58 | Dtype,
|
59 |
| - Scalar, |
60 | 59 | Self,
|
61 | 60 | npt,
|
62 | 61 | )
|
@@ -293,6 +292,19 @@ def astype(self, dtype, copy: bool = True):
|
293 | 292 | _str_startswith = ArrowStringArrayMixin._str_startswith
|
294 | 293 | _str_endswith = ArrowStringArrayMixin._str_endswith
|
295 | 294 | _str_pad = ArrowStringArrayMixin._str_pad
|
| 295 | + _str_match = ArrowExtensionArray._str_match |
| 296 | + _str_fullmatch = ArrowExtensionArray._str_fullmatch |
| 297 | + _str_lower = ArrowExtensionArray._str_lower |
| 298 | + _str_upper = ArrowExtensionArray._str_upper |
| 299 | + _str_strip = ArrowExtensionArray._str_strip |
| 300 | + _str_lstrip = ArrowExtensionArray._str_lstrip |
| 301 | + _str_rstrip = ArrowExtensionArray._str_rstrip |
| 302 | + _str_removesuffix = ArrowStringArrayMixin._str_removesuffix |
| 303 | + _str_get = ArrowStringArrayMixin._str_get |
| 304 | + _str_capitalize = ArrowStringArrayMixin._str_capitalize |
| 305 | + _str_title = ArrowStringArrayMixin._str_title |
| 306 | + _str_swapcase = ArrowStringArrayMixin._str_swapcase |
| 307 | + _str_slice_replace = ArrowStringArrayMixin._str_slice_replace |
296 | 308 |
|
297 | 309 | def _str_contains(
|
298 | 310 | self, pat, case: bool = True, flags: int = 0, na=np.nan, regex: bool = True
|
@@ -348,15 +360,6 @@ def _str_len(self):
|
348 | 360 | result = pc.utf8_length(self._pa_array)
|
349 | 361 | return self._convert_int_result(result)
|
350 | 362 |
|
351 |
| - _str_match = ArrowExtensionArray._str_match |
352 |
| - _str_fullmatch = ArrowExtensionArray._str_fullmatch |
353 |
| - _str_lower = ArrowExtensionArray._str_lower |
354 |
| - _str_upper = ArrowExtensionArray._str_upper |
355 |
| - _str_strip = ArrowExtensionArray._str_strip |
356 |
| - _str_lstrip = ArrowExtensionArray._str_lstrip |
357 |
| - _str_rstrip = ArrowExtensionArray._str_rstrip |
358 |
| - _str_removesuffix = ArrowStringArrayMixin._str_removesuffix |
359 |
| - |
360 | 363 | def _str_removeprefix(self, prefix: str):
|
361 | 364 | if not pa_version_under13p0:
|
362 | 365 | return ArrowExtensionArray._str_removeprefix(self, prefix)
|
@@ -461,8 +464,3 @@ def _cmp_method(self, other, op):
|
461 | 464 |
|
462 | 465 | class ArrowStringArrayNumpySemantics(ArrowStringArray):
|
463 | 466 | _na_value = np.nan
|
464 |
| - _str_get = ArrowStringArrayMixin._str_get |
465 |
| - _str_capitalize = ArrowStringArrayMixin._str_capitalize |
466 |
| - _str_title = ArrowStringArrayMixin._str_title |
467 |
| - _str_swapcase = ArrowStringArrayMixin._str_swapcase |
468 |
| - _str_slice_replace = ArrowStringArrayMixin._str_slice_replace |
0 commit comments