tabsdata.tableframe.expr.expr.Expr.mul#
- Expr.mul(other: Any) Expr [source]#
Multiplication operator.
- Parameters:
other – The value to multiply by.
Example:
>>> import tabsdata as td >>> >>> tf: td.TableFrame ... >>> >>> tf = tf.select(td.col("val"), td.col("val").mul(10).alias("mul")) >>> ┌──────┬──────┐ │ val ┆ mul │ │ --- ┆ --- │ │ i64 ┆ i64 │ ╞══════╪══════╡ │ 1 ┆ 10 │ │ 15 ┆ 150 │ │ 18 ┆ 180 │ │ 75 ┆ 750 │ │ null ┆ null │ └──────┴──────┘