QuestionQ199
VerifiedDeveloping Apache Spark™ DataFrame/DataSet API ApplicationsAn engineer needs to join two DataFrames, df1 and df2, using their respective employee_id and emp_id columns:
df1:employee_id INT,name STRINGdf2:emp_id INT,department STRING
The engineer used this code snippet to join df1 and df2:
result = df1.join(df2, df1.employee_id == df2.emp_id, how="inner')
What is the behavior of this code snippet?
Community Discussion