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
>
>

Reply via email to