Skip to content

Commit 129e95f

Browse files
simonjayhawkinsJulianWgs
authored andcommitted
[ArrowStringArray] Use utf8_upper and utf8_lower functions from Apache Arrow (pandas-dev#41056)
1 parent c5f01e7 commit 129e95f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/core/arrays/string_arrow.py

+6
Original file line numberDiff line numberDiff line change
@@ -757,3 +757,9 @@ def _str_map(self, f, na_value=None, dtype: Dtype | None = None):
757757
# or .findall returns a list).
758758
# -> We don't know the result type. E.g. `.get` can return anything.
759759
return lib.map_infer_mask(arr, f, mask.view("uint8"))
760+
761+
def _str_lower(self):
762+
return type(self)(pc.utf8_lower(self._data))
763+
764+
def _str_upper(self):
765+
return type(self)(pc.utf8_upper(self._data))

0 commit comments

Comments
 (0)