diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py index 2aa470b917a477..0345e98143e627 100644 --- a/pandas/core/arrays/string_arrow.py +++ b/pandas/core/arrays/string_arrow.py @@ -338,7 +338,7 @@ def _str_startswith(self, pat: str | tuple[str, ...], na: Scalar | None = None): # mimic existing behaviour of string extension array # and python string method result = pa.array( - np.full(len(self._pa_array), False), mask=isna(self._pa_array) + np.zeros(len(self._pa_array), dtype=bool), mask=isna(self._pa_array) ) else: result = pc.starts_with(self._pa_array, pattern=pat[0]) @@ -362,7 +362,7 @@ def _str_endswith(self, pat: str | tuple[str, ...], na: Scalar | None = None): # mimic existing behaviour of string extension array # and python string method result = pa.array( - np.full(len(self._pa_array), False), mask=isna(self._pa_array) + np.zeros(len(self._pa_array), dtype=bool), mask=isna(self._pa_array) ) else: result = pc.ends_with(self._pa_array, pattern=pat[0])