Spark Group By Alias

from pyspark.sql.functions import max

df.groupBy('column').agg(max("diff").alias("maxDiff"))
Real Rocket Raccoon