pyarrow.compute.ascii_rtrim_whitespace

pyarrow.compute.ascii_rtrim_whitespace(strings, *, memory_pool=None)

Trim trailing ASCII whitespace characters.

For each string in strings, emit a string with trailing ASCII whitespace characters removed. Use utf8_rtrim_whitespace to trim trailing Unicode whitespace characters. Null values emit null.

Parameters
  • strings (Array-like or scalar-like) – Argument to compute function

  • memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.