I used the below code to calculate the average of an attribute
from pyspark.sql import functions as F
from pyspark.sql.functions import mean
result = df.select([mean("Age")])
result.show()
I got the output as 56.4567 i need to convert it into an integer