Row statistics
The following statistics are available for DataRow
:
rowSum
rowMean
rowStd
These statistics will be applied only to values of appropriate types, and incompatible values will be ignored. For example, if a dataframe has columns of types String
and Int
, rowSum()
will compute the sum of the Int
values in the row and ignore String
values.
To apply statistics only to values of a particular type use -Of
versions:
rowSumOf<T>
rowMeanOf<T>
rowStdOf<T>
rowMinOf<T>
rowMaxOf<T>
rowMedianOf<T>
rowPercentileOf<T>