Databricks-Spark-Assoc Pandas API on Spark • Set 2
Databricks-Spark-Assoc Pandas API on Spark Practice Test 2 — 15 questions with explanations. Free, no signup.
A developer has a Pandas API on Spark DataFrame `psdf` and wants to sort it by the column `age` in descending order and then display the top 5 rows. Which code snippet correctly performs this operation while leveraging Spark's distributed sorting?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.