Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: How can you perform a union operation on two DataFrames in PySpark?
Answer: You can use the 'union' method to combine two DataFrames with the same schema.

Example:

result = df1.union(df2)
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook