MaxDocs
The Max Operation
Computes the maximum of values.
Only self-comparable values are supported: values of a type T : Comparable<T> that are mutually comparable (like strings, primitive numbers, or dates). This includes all primitive number types, but no mix of different number types, which would result in a ClassCastException.
null values in the input are always ignored.
If the input contains values, the result will be NaNNaN, unless skipNaN is set to true.
Max Modes
Depending on what exactly you want the maximum of, there are several modes. They are shown here for DataFrame, but they exist for the other receivers too:
max()— the maximum of each suitable column separately.max{ columns }— a single maximum of all values in all selected columns.maxFor{ columns }— the maximum of each selected column separately.maxOf{ expression }— the maximum of the values that the given expression returns for each row.maxBy{ expression }— the first row for which the given expression returns the maximum value.
max, maxOf, and maxBy all have an -OrNull counterpart which returns null instead of throwing an exception when there's nothing to compare.
Mirror operation: min.
For more information: See "min / max" on the documentation website.
See all summary statistics: See "Summary statistics" on the documentation website.