pyspark.sql.functions.asin¶
- 
pyspark.sql.functions.asin(col: ColumnOrName) → pyspark.sql.column.Column[source]¶
- Computes inverse sine of the input column. - New in version 1.4.0. - Changed in version 3.4.0: Supports Spark Connect. - Parameters
- colColumnor str
- target column to compute on. 
 
- col
- Returns
- Column
- inverse sine of col, as if computed by java.lang.Math.asin() 
 
 - Examples - >>> df = spark.createDataFrame([(0,), (2,)]) >>> df.select(asin(df.schema.fieldNames()[0])).show() +--------+ |ASIN(_1)| +--------+ | 0.0| | NaN| +--------+