pyarrow.compute.ascii_rtrimΒΆ

pyarrow.compute.ascii_rtrim(strings, /, characters, *, options=None, memory_pool=None)ΒΆ

Trim trailing characters.

For each string in strings, remove any trailing characters from the characters option (as given in TrimOptions). Null values emit null. Both the strings and the characters are interpreted as ASCII; to trim non-ASCII characters, use utf8_rtrim.

Parameters:
stringsArray-like or scalar-like

Argument to compute function.

charactersstr

Individual characters to be trimmed from the string.

optionspyarrow.compute.TrimOptions, optional

Alternative way of passing options.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.