QuestionQ14

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following code blocks returns a new DataFrame resulting from a position-wise union of DataFrame storesDF and DataFrame acquiredStoresDF?

Explanation

PySpark DataFrame.union returns a new DataFrame containing rows from both inputs and resolves corresponding columns by position rather than by name. PySpark DataFrame.union documentation

Learn more

Community Discussion

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