pyspark.sql.functions.avg

pyspark.sql.functions.avg(col: ColumnOrName) → pyspark.sql.column.Column[source]

Aggregate function: returns the average of the values in a group.

New in version 1.3.