Question
What does filter do on an RDD?
Select an option. Your answer will be checked instantly.
Correct Answer: C. Retains records for which a predicate returns true
Explanation:
filter is a narrow transformation.
It preserves only records satisfying the condition.
Leave a Reply