pyspark.sql.functions.acosh¶
-
pyspark.sql.functions.
acosh
(col: ColumnOrName) → pyspark.sql.column.Column[source]¶ Computes inverse hyperbolic cosine of the input column.
New in version 3.1.0.
Changed in version 3.4.0: Supports Spark Connect.
- Parameters
- col
Column
or str target column to compute on.
- col
- Returns
Column
the column for computed results.
Examples
>>> df = spark.range(2) >>> df.select(acosh(col("id"))).show() +---------+ |ACOSH(id)| +---------+ | NaN| | 0.0| +---------+