lundi 20 avril 2015

Scala Saddle Filtering Column Values

I am new to scala Saddle, I have three column (customer name, age and Status) in a frame. I have to apply filter in column (age). If any customer age having more than 18 I need to set the Status is "eligible" other wise I need to put "noteligible". Please help me to solve this issue.

Code:

f.col("age").filterAt(x => x > 18)  //but how to update Status column

Aucun commentaire:

Enregistrer un commentaire