rowMinOf
Returns the minimum of the values of type T in this DataRow.
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.
Throws a NoSuchElementException 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:
rowMinOfOrNull— returnsnullinstead of throwing when there's nothing to compare.rowMaxOf— the mirror operation.min— 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
df[0].rowMinOf<Int>()Return
The smallest value of type T in this row.
Parameters
Type Parameters
The type of the values to compare. Only columns of this type are taken into account.
Throws
if there are no values to compare.