GroupedData.
mean
Computes average values for each numeric columns for each group.
mean() is an alias for avg().
mean()
avg()
New in version 1.3.0.
Changed in version 3.4.0: Supports Spark Connect.
column names. Non-numeric columns are ignored.
previous
pyspark.sql.GroupedData.max
next
pyspark.sql.GroupedData.min