pyspark.sql.functions.
max
Aggregate function: returns the maximum value of the expression in a group.
New in version 1.3.