spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Divya Gehlot <divya.htco...@gmail.com>
Subject [Spark 1.5.2]: Iterate through Dataframe columns and put it in map
Date Wed, 02 Mar 2016 10:22:30 GMT
Hi,

I need to iterate through columns in dataframe based on certain condition
and put it in map .

Dataset
Column1  Column2
Car       Model1
Bike       Model2
Car         Model2
Bike       Model 2

I want to iterate through above dataframe and put it in map where car is
key and model1 and model 2 as values


Thanks,
Regards,
Divya

Mime
View raw message