Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Which of the following code blocks returns a new DataFrame where:
division
storesDF
state
managerName
managerFullName
A
storesDF.withColumnRenamed("division", "state") .withColumnRenamed("managerName", "managerFullName")
B
storesDF.withColumn("state", "division") .withColumn("managerFullName", "managerName")
C
storesDF.withColumn("state", col("division")) .withColumn("managerFullName", col("managerName"))
D
storesDF.withColumnRenamed(Seq("division", "state"), Seq("managerName", "managerFullName"))
E
storesDF.withColumnRenamed("state", "division") .withColumnRenamed("managerFullName", "managerName")