Expr.str.reverse
methodView source ↗
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 │
│ --- ┆ --- │
│ str ┆ str │
╞══════╪═════════╡
│ abc ┆ cba │
│ a ┆ a │
│ null ┆ null │
└──────┴─────────┘