to Map Of Columns
fun Array<DoubleArray>.toMapOfColumns(colNames: List<String> = emptyList()): Map<String, DoubleArray>
Converts the 2D array of doubles to a map that holds the arrays by column. If the column name is not supplied then the column is called col1, col2, etc. The 2D array must be rectangular.
Parameters
col Names
the names of the columns (optional)