Google News
logo
PySpark - Quiz(MCQ)
Which of the following is an action operation in PySpark?
A)
map()
B)
filter()
C)
flatMap()
D)
count()

Correct Answer :   count()


Explanation : count() is an action operation in PySpark. It returns the number of elements in an RDD. Other action operations in PySpark include collect(), reduce(), take(), and foreach().

Advertisement