Spec-Zone.ru › Polars

polars.Series.degrees

Series.degrees() → Series

Преобразует радианы в градусы.

Примеры

>>> import math
>>> s = pl.Series("a", [x * math.pi for x in range(-4, 5)])
>>> s.degrees()
shape: (9,)
Series: 'a' [f64]
[
    -720.0
    -540.0
    -360.0
    -180.0
    0.0
    180.0
    360.0
    540.0
    720.0
]

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.degrees.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API