tabsdata.tableframe.expr.expr.Expr.last#
- Expr.last() Expr [source]#
Get the last element.
Example:
>>> import tabsdata as td >>> >>> tf: td.TableFrame ... >>> >>> tf = tf.select(td.col("age"), td.col("age").first().alias("last")) >>> ┌──────┬─────────┐ │ age ┆ last │ │ --- ┆ ------- │ │ i64 ┆ i64 │ ╞══════╪═════════╡ │ 10 ┆ 70 │ │ 11 ┆ 70 │ │ 18 ┆ 70 │ │ 65 ┆ 70 │ │ 70 ┆ 70 │ └──────┴─────────┘