You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Javier Rey <jr...@gmail.com> on 2016/08/04 13:38:31 UTC
Add column sum as new column in PySpark dataframe
I'm using PySpark and I have a Spark dataframe with a bunch of numeric
columns. I want to add a column that is the sum of all the other columns.
Suppose my dataframe had columns "a", "b", and "c". I know I can do this: