Skip to main content
Version: 0.9.1

Expr.cbrt

def cbrt() -> Expr

Categories: numeric

Calculate the cub root of the element value.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").cbrt().alias("cbrt"))
>>>
┌──────┬──────────┐
│ val ┆ cbrt │
------
│ i64 ┆ f64 │
╞══════╪══════════╡
11.0
152.466212
182.620741
603.914868
603.914868
754.217163
│ null ┆ null │
└──────┴──────────┘