pyarrow.compute.ascii_trim_whitespace#
- pyarrow.compute.ascii_trim_whitespace(strings, /, *, memory_pool=None)#
Trim leading and trailing ASCII whitespace characters.
For each string in strings, emit a string with leading and trailing ASCII whitespace characters removed. Use utf8_trim_whitespace to trim Unicode whitespace characters. Null values emit null.
- Parameters
- stringsArray-like or scalar-like
Argument to compute function.
- memory_pool
pyarrow.MemoryPool
, optional If not passed, will allocate memory from the default memory pool.