spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Laskowski <ja...@japila.pl>
Subject Re: Create dataframe column from list
Date Fri, 22 Jul 2016 12:20:11 GMT
Hi,

Doh, just rebuilding Spark so...writing off the top of my head.

val cols = Seq("hello", "world")
val columns = cols.map(Column.col)

See http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.Column

Pozdrawiam,
Jacek Laskowski
----
https://medium.com/@jaceklaskowski/
Mastering Apache Spark http://bit.ly/mastering-apache-spark
Follow me at https://twitter.com/jaceklaskowski


On Fri, Jul 22, 2016 at 1:45 PM, Divya Gehlot <divya.htconex@gmail.com> wrote:
> Hi,
> Can somebody help me by creating the dataframe column from the scala list .
> Would really appreciate the help .
>
> Thanks ,
> Divya

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Mime
View raw message