polars.Expr.cosh#

Expr.cosh() polars.internals.expr.Expr#

Compute the element-wise value for the hyperbolic cosine.

Returns
Series of dtype Float64

Examples

>>> df = pl.DataFrame({"a": [1.0]})
>>> df.select(pl.col("a").cosh())
shape: (1, 1)
┌──────────┐
│ a        │
│ ---      │
│ f64      │
╞══════════╡
│ 1.543081 │
└──────────┘