spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michał Zieliński <zielinski.mich...@gmail.com>
Subject Re: how to convert the RDD[Array[Double]] to RDD[Double]
Date Mon, 14 Mar 2016 08:37:53 GMT
For RDD you can use flatMap, for DataFrames explode would be the best fit.

On 14 March 2016 at 08:28, lizhenmxcz@163.com <lizhenmxcz@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
>
>                                                                 4.0 5.0 6.0
> the file and convert it to RDD[Double]. Thanks.
> ------------------------------
> lizhenmxcz@163.com
>

Mime
View raw message