QuestionQ201

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

The code block below must return a new DataFrame resulting from an inner join between DataFrame storeDF and DataFrame employeesDF on the storeId column. Choose the response that correctly fills the numbered blanks in the code block to finish this task.

storesDF.__1__(__2__, __3__, __4__)  
Explanation

Spark’s DataFrame join overload accepts the right-hand DataFrame, the shared join-column name, and the join type. join(employeesDF, "storeId", "inner") performs an inner equi-join using storeId, which must exist in both DataFrames.

Learn more

Community Discussion

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