Created
August 4, 2016 04:29
-
-
Save jlln/68d7ddf6d4f3bf9cce798a87310f1c73 to your computer and use it in GitHub Desktop.
Selecting spark columns using a Seq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val retained_features:List[String] = group_mean_columns.filter(x=> !missings.contains(x._2)).map(_._1).toList :+ "LogAdjustedDemand" | |
//Select these columns in the training dataset | |
val model_training_data = training_data_all.select(retained_features.head,retained_features.tail: _*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment