Skip to main content
Version: 0.9.1

Expr.arccos

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.011.560796
0.151.420228
0.181.38981
0.60.927295
0.60.927295
0.750.722734
│ null ┆ null │
└──────┴──────────┘