Skip to main content
Version: 1.9.1

Expr.truediv

def truediv(other: Any) -> Expr

Categories: numeric

Equivalent to the float / operator.

Parameters

parameter
other

value to divide by.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf.select(td.col("val"), td.col("val").truediv(3).alias("truediv"))
>>>
┌────────┬────────────┐
│ val ┆ truediv │
------
│ f64 ┆ f64 │
╞════════╪════════════╡
0.01230.0041
2.02440.6748
0.00.0
│ inf ┆ inf │
-50.0-16.666667
1.00.333333
│ NaN ┆ NaN │
│ null ┆ null │
-112.0-37.333333
2142.0714.0
└────────┴────────────┘