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?
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?
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.
E. storesDF.union(acquiredStoresDF)