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

Certified Associate Developer for Apache Spark 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?

Show Answer
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

1 comment
Sign in to comment
Sowwy1Option: E
Apr 10, 2024

E. storesDF.union(acquiredStoresDF)