pyspark.sql.functions.asinh

pyspark.sql.functions.asinh(col: ColumnOrName) → pyspark.sql.column.Column[source]

Computes inverse hyperbolic sine of the input column.

New in version 3.1.0.

Changed in version 3.4.0: Supports Spark Connect.

Parameters
colColumn or str

target column to compute on.

Returns
Column

the column for computed results.

Examples

>>> df = spark.range(1)
>>> df.select(asinh(col("id"))).show()
+---------+
|ASINH(id)|
+---------+
|      0.0|
+---------+