
Ultimate access to all questions.
Which of the following code blocks returns a new DataFrame where:
division from DataFrame storesDF is replaced and renamed to statemanagerName from DataFrame storesDF is replaced and renamed to 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")