pyspark.sql.functions.
skewness
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.
Column
target column to compute on.
skewness of given column.
Examples
>>> df = spark.createDataFrame([[1],[1],[2]], ["c"]) >>> df.select(skewness(df.c)).first() Row(skewness(c)=0.70710...)