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

Transform ASCII input lowercase characters to uppercase and uppercase characters to lowercase.

For each string in strings, return a string with opposite casing.

This function assumes the input is fully ASCII. If it may contain non-ASCII characters, use “utf8_swapcase” instead.

  • 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.