Expr.cbrt
methodView source ↗
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 │
╞══════╪══════════╡
│ 1 ┆ 1.0 │
│ 15 ┆ 2.466212 │
│ 18 ┆ 2.620741 │
│ 60 ┆ 3.914868 │
│ 60 ┆ 3.914868 │
│ 75 ┆ 4.217163 │
│ null ┆ null │
└──────┴──────────┘