I am developing a function in pyspark that involves a .agg(avg("colname")). I have ran from pyspark.sql import functions but the avg para
.agg(avg("colname"))
from pyspark.sql import functions