polars.Series.cos# Series.cos() → Series[source]# Compute the element-wise value for the cosine. Examples >>> import math >>> s = pl.Series("a", [0.0, math.pi / 2.0, math.pi]) >>> s.cos() shape: (3,) Series: 'a' [f64] [ 1.0 6.1232e-17 -1.0 ]