pyarrow.compute.utf8_rtrim

pyarrow.compute.utf8_rtrim(strings, *, memory_pool=None, options=None, characters)

Trim trailing characters present in the characters arguments.

For each string in strings, emit a string with leading characters removed that are present in the characters argument. 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.

  • options (pyarrow.compute.TrimOptions, optional) – Parameters altering compute function semantics

  • **kwargs (optional) – Parameters for TrimOptions constructor. Either options or **kwargs can be passed, but not both at the same time.