polars.Series.arctan

Series.arctan() polars.internals.series.Series

Compute the element-wise value for Trigonometric Inverse tangent.

Examples

>>> import numpy as np
>>> s = pl.Series("a", np.array((1.0, 0.0, -1)))
>>> s.arctan()
shape: (3,)
Series: 'a' [f64]
[
    0.7853981633974483
    0.0
    -7.853981633974483e-1
]