Re: how to convert the RDD[Array[Double]] to RDD[Double]

2016-03-14 Thread Michał Zieliński
For RDD you can use flatMap, for DataFrames explode would be the best fit. On 14 March 2016 at 08:28, lizhenm...@163.com wrote: > > hi: > *I want to *convert the RDD[Array[Double]] to RDD[Double]. for example, > t stored 1.0 2.0 3.0 in the file , how i read > >

how to convert the RDD[Array[Double]] to RDD[Double]

2016-03-14 Thread lizhenm...@163.com
hi: I want to convert the RDD[Array[Double]] to RDD[Double]. for example, t stored 1.0 2.0 3.0 in the file , how i read 4.0 5.0 6.0 the file and convert i