Skip to main content
Version: 0.9.5

Expr.str.reverse

def reverse() -> Expr

Categories: string

Reverse the string.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf.select(td.col("a"), td.col("a").str.reverse().alias("reverse"))
>>>
┌──────┬─────────┐
│ a ┆ reverse │
------
strstr
╞══════╪═════════╡
│ abc ┆ cba │
│ a ┆ a │
│ null ┆ null │
└──────┴─────────┘