polars.Expr.arcsin#

Expr.arcsin() Expr[source]#

Compute the element-wise value for the inverse sine.

engine:In MemoryStreamingDistributed
Returns:
Expr

Expression of data type Float64, measuring an angle in radians.

Notes

To convert the result from radians to degrees, call .degrees().

Examples

>>> df = pl.DataFrame({"a": [1.0, 0.5, 0]})
>>> df.select(pl.col("a").arcsin())
shape: (3, 1)
┌──────────┐
│ a        │
│ ---      │
│ f64      │
╞══════════╡
│ 1.570796 │
│ 0.523599 │
│ 0.0      │
└──────────┘
>>> df.select(pl.col("a").arcsin().degrees())
shape: (3, 1)
┌──────┐
│ a    │
│ ---  │
│ f64  │
╞══════╡
│ 90.0 │
│ 30.0 │
│ 0.0  │
└──────┘