Databricks Certified Associate Developer For Apache Spark 30 · Free Practice Question Easy
Question 5
What command we can use to get the number of partition of a dataframe named df ?
- A df.rdd.getPartitionSize()
- B df.rdd.getNumPartitions()
- C df.getNumPartitions()
- D df.getPartitionSize()
Reveal correct answer
Correct answer: B
Explanation
Correct answer here is df.rdd.getNumPartitions()Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
