tabsdata.tableframe.expr.expr.Expr.add#
- Expr.add(other: Any) Expr [source]#
Equivalent to the + operator.
For numeric types adds the given input. For string types concatenates the given input.
- Parameters:
other – The value to add or concatenate.
Example:
>>> import tabsdata as td >>> >>> tf: td.TableFrame ... >>> >>> tf.select(td.col("val"), td.col("val").add(1).alias("add")) >>> ┌──────┬──────────┐ │ val ┆ add │ │ --- ┆ --- │ │ i64 ┆ i64 │ ╞══════╪══════════╡ │ 1 ┆ 2 │ │ 15 ┆ 16 │ │ 18 ┆ 19 │ │ 60 ┆ 61 │ │ 60 ┆ 61 │ │ 75 ┆ 76 │ │ null ┆ null │ └──────┴──────────┘