PySpark Interview Questions and Answers
Question: Explain the purpose of the 'collect' action in PySpark.Answer: The 'collect' action retrieves all elements of a distributed dataset (RDD or DataFrame) and brings them to the driver program.Example:
|
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: