polars.Expr.cos# Expr.cos() → Self[source]# Compute the element-wise value for the cosine. Returns: ExprExpression of data type Float64. Examples >>> df = pl.DataFrame({"a": [0.0]}) >>> df.select(pl.col("a").cos()) shape: (1, 1) ┌─────┐ │ a │ │ --- │ │ f64 │ ╞═════╡ │ 1.0 │ └─────┘