Expr.add
methodView source ↗
def add(other: Any) -> Expr
Categories: numeric
Equivalent to the + operator.
For numeric types adds the given input. For string types concatenates the given input.
Parameters
parameter
otherThe value to add or concatenate.
Examples
>>> 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 │
└──────┴──────────┘