DatabricksDatabricks
DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #14
DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Question #14: Real Exam Question with Answer & Explanation
The correct answer is D: DataFrame.count(). See the full explanation below for the reasoning.
Working with Spark DataFrames
Question
Which of the following operations can be used to return the number of rows in a DataFrame?
Options
- ADataFrame.numberOfRows()
- BDataFrame.n()
- CDataFrame.sum()
- DDataFrame.count()
- EDataFrame.countDistinct()
Topics
#Spark DataFrame#DataFrame operations#Count rows#API methods
Community Discussion
No community discussion yet for this question.