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