polars.Series.arccos#
- Series.arccos() Series[source]#
Compute the element-wise value for the inverse cosine.
Notes
The returned value is in radians. To convert from radians to degrees, call
.degrees().Examples
>>> s = pl.Series("a", [1.0, 0.0, -1.0]) >>> s.arccos() shape: (3,) Series: 'a' [f64] [ 0.0 1.570796 3.141593 ]