rowMinOfOrNull
Returns the minimum of the values of type T in this DataRow, or null if there is nothing to compare.
Only the values in the columns of type T (or T?) are taken into account; all other columns of the row are ignored.
Columns inside column groups are also excluded. To include those in the minimum, flatten the DataFrame first.
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.
Returns null when there is nothing left to compare, for instance when the input is empty or contains only null (or, if skipNaN is true, only null and ) values.NaN
The result has the same type as the input values (minus nullability, if the input values were nullable).
For more information about the resulting types: See "min / max Type Conversion" on the documentation website.
See also:
rowMinOf— throws instead of returningnullwhen there's nothing to compare.rowMaxOfOrNull— the mirror operation.minOrNull— the minimum of the values in specific columns of aDataFrame.The Min Operation— an overview of allminmodes.
For more information: See "Row statistics" on the documentation website.
Example
// The smallest of all `Int` values in the first row, or `null` if there are none
df[0].rowMinOfOrNull<Int>()Return
The smallest value of type T in this row, or null if there are no values to compare.
Parameters
Type Parameters
The type of the values to compare. Only columns of this type are taken into account.