Grup Spark oleh Alias

from pyspark.sql.functions import max

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