polars.Series.cot
-
Вычисляет значение котангенса для каждого элемента.
Примечания
Входные значения интерпретируются как радианы. Чтобы преобразовать градусы в радианы, вызовите
.radians().Примеры
>>> import math >>> s = pl.Series("a", [0.0, math.pi / 2.0, math.pi]) >>> s.cot() shape: (3,) Series: 'a' [f64] [ inf 6.1232e-17 -8.1656e15 ]
Series.cot() → Series
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.cot.html