polars.Series.arccos
-
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 ]
Series.arccos() → Series
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.arccos.html