I have the following DataFrame:
January | February | March ----------------------------- 10 | 10 | 10 20 | 20 | 20 50 | 50
You can use expr() for this.In scala use
df.withColumn("TOTAL", expr("January+February+March"))