I am trying to calculate the mean of a certain column and save it as a new column, following is my code snippet of achieving this:
df = df.withColumn("av