pyspark.sql.functions.skewness¶
-
pyspark.sql.functions.
skewness
(col: ColumnOrName) → pyspark.sql.column.Column[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.
Examples
>>> df = spark.createDataFrame([[1],[1],[2]], ["c"]) >>> df.select(skewness(df.c)).first() Row(skewness(c)=0.70710...)