polars.Series.str.reverse#

Series.str.reverse() Series[source]#

Returns string values in reversed order.

Examples

>>> s = pl.Series("text", ["foo", "bar", "mañana"])
>>> s.str.reverse()
shape: (3,)
Series: 'text' [str]
[
    "oof"
    "rab"
    "anañam"
]