Jun
05
How to add a new column to a Dataframe in Apache Spark
Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at withColumn() function in Apache Spark SQL API. withColumn(String columnName, Column newColumn) is used to add a new column to a dataframe. Let’s look at the below code snippet in spark-shell for Read more