
Ultimate access to all questions.
Which of the following code blocks returns a new DataFrame where column division from DataFrame storesDF has been renamed to state and column managerName from DataFrame storesDF has been renamed to managerFullName?
A
(storesDF.withColumnRenamed(["division", "state"], ["managerName", "managerFullName"])
B
(storesDF.withColumn("state", col("division")) .withColumn("managerFullName", col("managerName")))
C
(storesDF.withColumn("state", "division") .withColumn("managerFullName", "managerName"))
D
(storesDF.withColumnRenamed("state", "division") .withColumnRenamed("managerFullName", "managerName"))
E
(storesDF.withColumnRenamed("division", "state") .withColumnRenamed("managerName", "managerFullName"))