I have a DataFrame with three columns; How can I convert it to a nested array in Scala - Array[Array[Double]]?
I am getting Array[(Double, Double)] when i try to map:
val x= dataframe.select("time","sex")
.collect()
.map(x=>x(0).toString.toDouble ,x(1).toString.toDouble)