Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'orderBy' operation in PySpark?
Answer: 'OrderBy' is used to sort the rows of a DataFrame based on one or more columns.

Example:

result = df.orderBy('column')
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook