tabsdata.tableframe.expr.string.ExprStringNameSpace.tail#
- ExprStringNameSpace.tail(n: int | Expr | Series | str) Expr [source]#
Extract the end of the string up to the given length.
- Parameters:
n – The length of the tail.
Example:
>>> import tabsdata as td >>> >>> tf: td.TableFrame ... >>> >>> tf.select(td.col("a"), td.col("a").str.tail(2).alias("tail")) >>> ┌──────┬──────┐ │ a ┆ tail │ │ --- ┆ --- │ │ str ┆ str │ ╞══════╪══════╡ │ abc ┆ bc │ │ a ┆ a │ │ null ┆ null │ └──────┴──────┘