pyarrow.compute.utf8_reverse

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

Reverse utf8 input.

For each utf8 string in strings, return a reversed version.

This function operates on codepoints/UTF-8 code units, not grapheme clusters. Hence, it will not correctly reverse grapheme clusters composed of multiple codepoints.

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.