QuestionQ12

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

The code block below includes an error. It is intended to return a new DataFrame resulting from a position-wise union between DataFrame storesDF and DataFrame acquiredStoresDF.

Explanation

PySpark DataFrame.union(other) returns a new DataFrame containing rows from both DataFrames and resolves corresponding columns by position rather than by name. Apache Spark: DataFrame.union

Learn more

Community Discussion

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