Skip to main content
Version: 1.3.0

Expr.mul

def mul(other: Any) -> Expr

Categories: numeric

Multiplication operator.

Parameters

parameter
other

The 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 │
╞══════╪══════╡
110
15150
18180
75750
│ null ┆ null │
└──────┴──────┘