asinh

asinh #

pyspark.sql.functions.asinh(col) #

version: since 3.1.0

Computes inverse hyperbolic sine of the input column.

asinh

Runnable Code:

from pyspark.sql import functions as F
# Set up dataframe
data = [{"num": 1.0},{"num": .5},{"num": 0.0}]
df = spark.createDataFrame(data)
# Use function
df = (df
     .withColumn("asinh", F.asinh("num"))
     )
df.show()
num asinh
1.0 0.8813735870195429
0.5 0.48121182505960347
0.0 0.0

Usage:

This is just a basic math function. Nothing special about it. Never used it.



returns: \_invoke_function_over_column("asinhh", col)

PySpark manual

tags: hyperbolic sine, cosine, inverse hyperbolic sine, trigonometry, trig, sine




© 2023 PySpark Is Rad