pyspark.sql.functions.skewness#
- pyspark.sql.functions.skewness(col)[source]#
- Aggregate function: returns the skewness of the values in a group. - New in version 1.6.0. - Changed in version 3.4.0: Supports Spark Connect. - Parameters
- colColumnor column name
- target column to compute on. 
 
- col
- Returns
- Column
- skewness of given column. 
 
 - See also - Examples - >>> from pyspark.sql import functions as sf >>> df = spark.createDataFrame([[1],[1],[2]], ["c"]) >>> df.select(sf.skewness(df.c)).show() +------------------+ | skewness(c)| +------------------+ |0.7071067811865...| +------------------+