Skip to content
RED SAGSkills
hard20 pts · first answer countssparkspark-tuningpyspark

Adding 300 columns with withColumn

Code adds 300 derived columns with a for loop that calls df = df.withColumn(...) each time. The job spends minutes before any task starts. What is the better pattern?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions