pyspark.sql.functions.cosh#
- pyspark.sql.functions.cosh(col)[source]#
Computes hyperbolic cosine of the input column.
New in version 1.4.0.
Changed in version 3.4.0: Supports Spark Connect.
- Parameters
- col
Column
or str hyperbolic angle
- col
- Returns
Column
hyperbolic cosine of the angle, as if computed by java.lang.Math.cosh()
Examples
>>> df = spark.range(1) >>> df.select(cosh(lit(1))).first() Row(COSH(1)=1.54308...)