programmingTech

Using withColumn, you are bound to perform your transformation on the entire parent dataframe data.