You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pandas/core/arrays/_arrow_string_mixins.py
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -281,16 +281,11 @@ def _str_isalpha(self):
281
281
# return False
282
282
283
283
def_str_isascii(self):
284
-
# Check if the array is of string type (or if the implementation should handle it)
285
-
ifisinstance(self._pa_array, pa.StringArray):
286
-
# Apply the isascii check element-wise using PyArrow's compute functions
287
-
result=pc.ascii_is_ascii(self._pa_array)
284
+
# Check if the array is of string type (or if the implementation should handle it) # Apply the isascii check element-wise using PyArrow's compute functions
285
+
result=pc.ascii_is_ascii(self._pa_array)
288
286
289
287
# Convert the result to the appropriate format (e.g., PyArrow BooleanArray)
290
-
returnself._convert_bool_result(result)
291
-
292
-
# If the input is not a StringArray, handle accordingly (e.g., return False or None)
293
-
returnFalse
288
+
returnself._convert_bool_result(result)
294
289
295
290
# def _str_isascii(self):
296
291
# # Handle the case where self might be a pandas StringArray or similar
0 commit comments