pyspark.sql.functions.
kurtosis
Aggregate function: returns the kurtosis 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.
kurtosis of given column.
Examples
>>> df = spark.createDataFrame([[1],[1],[2]], ["c"]) >>> df.select(kurtosis(df.c)).show() +-----------+ |kurtosis(c)| +-----------+ | -1.5| +-----------+