DataFrame API Transformations Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Data Transformations

What you'll be asked

  1. Which DataFrame API method is used to select a subset of columns from an existing DataFrame?
  2. When performing a join between two DataFrames, what is the primary difference between an 'inner' join and a 'left' join?
  3. You need to calculate the average salary per department. Which sequence of operations is correct?
  4. What is the result of applying a 'withColumn' transformation to an existing DataFrame?
  5. You have a DataFrame with a column containing arrays of tags. Which transformation should you use to create a new row for every element in those arrays?

Answers and explanations come after you submit.