Expr.arccos
methodView source ↗
def arccos() -> Expr
Categories: numeric
Calculate the inverse cosine of the element value.
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").arccos().alias("arccos"))
>>>
┌──────┬──────────┐
│ val ┆ arccos │
│ --- ┆ --- │
│ f64 ┆ f64 │
╞══════╪══════════╡
│ 0.01 ┆ 1.560796 │
│ 0.15 ┆ 1.420228 │
│ 0.18 ┆ 1.38981 │
│ 0.6 ┆ 0.927295 │
│ 0.6 ┆ 0.927295 │
│ 0.75 ┆ 0.722734 │
│ null ┆ null │
└──────┴──────────┘