pyspark.sql.GroupedData.max¶
-
GroupedData.
max
(*cols: str) → pyspark.sql.dataframe.DataFrame¶ Computes the max value for each numeric columns for each group.
Examples
>>> df.groupBy().max('age').collect() [Row(max(age)=5)] >>> df3.groupBy().max('age', 'height').collect() [Row(max(age)=5, max(height)=85)]