want on the fly:
myDF.select(myDF.columns.filter(_ != column_you_do_not_want).map(colname
= new Column(colname)).toList : _* )
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Drop-a-column-from-the-DataFrame-tp22711p22737.html
Sent from the Apache Spark
(myDF.columns.filter(_ != column_you_do_not_want).map(colname
= new Column(colname)).toList : _* )
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Drop-a-column-from-the-DataFrame-tp22711p22737.html
Sent from the Apache Spark User List mailing list archive at Nabble.com
-a-column-from-the-DataFrame-tp22711p22737.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h
).map(colname
= new Column(colname)).toList : _* )
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Drop-a-column-from-the-DataFrame-tp22711p22737.html
Sent from the Apache Spark User List mailing list archive at Nabble.com