Question 41

Which of the following code blocks efficiently converts DataFrame transactionsDf from 12 into 24 partitions?
  • Question 42

    The code block shown below should show information about the data type that column storeId of DataFrame transactionsDf contains. Choose the answer that correctly fills the blanks in the code block to accomplish this.
    Code block:
    transactionsDf.__1__(__2__).__3__
  • Question 43

    The code block displayed below contains an error. The code block should return DataFrame transactionsDf, but with the column storeId renamed to storeNumber. Find the error.
    Code block:
    transactionsDf.withColumn("storeNumber", "storeId")
  • Question 44

    Which of the following statements about reducing out-of-memory errors is incorrect?
  • Question 45

    Which of the following DataFrame methods is classified as a transformation?