You can use df.withColumn("a", df.b)
to make column a having the same value as column b. On Mon, Apr 20, 2015 at 3:38 PM, ARose <ashley.r...@telarix.com> wrote: > In my Java application, I want to update the values of a Column in a given > DataFrame. However, I realize DataFrames are immutable, and therefore > cannot > be updated by conventional means. Is there a workaround for this sort of > transformation? If so, can someone provide an example? > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Updating-a-Column-in-a-DataFrame-tp22578.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 > >