File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -268,15 +268,19 @@ def _str_isascii(self):
268
268
# for s in self.to_pylist()
269
269
# ]
270
270
271
- def _str_isascii (self ):
272
- pylist = [
273
- s .isascii () if isinstance (s , str ) else None
274
- for s in self ._pa_array .to_pylist ()
275
- ]
271
+ # def _str_isascii(self):
272
+ # pylist = [
273
+ # s.isascii() if isinstance(s, str) else None
274
+ # for s in self._pa_array.to_pylist()
275
+ # ]
276
276
277
- result = pa .array (pylist , type = pa .bool_ ())
277
+ # result = pa.array(pylist, type=pa.bool_())
278
+ # return self._convert_bool_result(result)
279
+
280
+ def _str_isascii (self ):
281
+ result = all (ord (char ) < 128 for char in self )
278
282
return self ._convert_bool_result (result )
279
-
283
+
280
284
def _str_isdecimal (self ):
281
285
result = pc .utf8_is_decimal (self ._pa_array )
282
286
return self ._convert_bool_result (result )
You can’t perform that action at this time.
0 commit comments