QuestionQ124

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

The code block below must return a new DataFrame that results from a position-wise union of DataFrame storesDF and DataFrame acquiredStoresDF. Choose the response that correctly fills the numbered blanks in the code block to complete this task.

__1__.__2__(__3__)  
Explanation

DataFrame.union(other) returns a new DataFrame containing rows from both DataFrames and resolves corresponding columns by position. Calling union on storesDF with acquiredStoresDF as other produces the required expression: storesDF.union(acquiredStoresDF).

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!