Expr.mul
methodView source ↗
def mul(other: Any) -> Expr
Categories: numeric
Multiplication operator.
Parameters
parameter
otherThe value to multiply by.
Examples
>>> 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 │
└──────┴──────┘