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
if you are using pandas .max() will work :
.max()
>>> df2=pd.DataFrame({'A':[1,5,0], 'B':[3, 5, 6]}) >>> df2['A'].max() 5
Else if it's a spark dataframe:
spark
Best way to get the max value in a Spark dataframe column