great thx Le sam. 2 mai 2015 à 23:58, Ted Yu <yuzhih...@gmail.com> a écrit :
> This is coming in 1.4.0 > https://issues.apache.org/jira/browse/SPARK-7280 > > > > On May 2, 2015, at 2:27 PM, Olivier Girardot <ssab...@gmail.com> wrote: > > Sounds like a patch for a "drop" method... > > Le sam. 2 mai 2015 à 21:03, dsgriffin <dsgrif...@gmail.com> a écrit : > >> Just use select() to create a new DataFrame with only the columns you >> want. >> Sort of the opposite of what you want -- but you can select all but the >> columns you want minus the one you don. You could even use a filter to >> remove just the one column you 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 User List mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org >> For additional commands, e-mail: user-h...@spark.apache.org >> >>