I have a data frame in pyspark. In this data frame I have column called id that is unique.
pyspark
id
Now I want to find the maximum value of
maximum
I'm coming from scala, but I do believe that this is also applicable on python.
val max = df.select(max("id")).first()
but you have first import the following :
from pyspark.sql.functions import max