Exam Certified Associate Developer for Apache Spark All QuestionsBrowse all questions from this exam
Question 144

Which of the following code blocks returns a new DataFrame that is the result of a position-wise union between DataFrame storesDF and DataFrame acquiredStoresDF?

    Correct Answer: E

    The correct code block to perform a position-wise union between DataFrame storesDF and DataFrame acquiredStoresDF is storesDF.union(acquiredStoresDF). The union method is used to combine two DataFrames with the same schema, returning a new DataFrame containing all rows from both DataFrames.

Discussion
Sowwy1Option: E

E. storesDF.union(acquiredStoresDF)