polars.Expr.arccos#

Expr.arccos() Expr[source]#

Compute the element-wise value for the inverse cosine.

Returns:
Series of dtype Float64

Examples

>>> df = pl.DataFrame({"a": [0.0]})
>>> df.select(pl.col("a").arccos())
shape: (1, 1)
┌──────────┐
│ a        │
│ ---      │
│ f64      │
╞══════════╡
│ 1.570796 │
└──────────┘