Certified Associate Developer for Apache Spark Exam QuestionsBrowse all questions from this exam

Certified Associate Developer for Apache Spark Exam - Question 34


Which of the following operations returns a GroupedData object?

Show Answer
Correct Answer: D

The DataFrame.groupBy() method is used to group the DataFrame based on one or more columns, and it returns a GroupedData object, which can then be used to perform various aggregation operations on the grouped data. Options A, B, C, and E do not return a GroupedData object.

Discussion

2 comments
Sign in to comment
outwalkerOption: D
Nov 8, 2023

D. DataFrame.groupBy() The groupBy() method is used to group the DataFrame based on one or more columns, and it returns a GroupedData object, which can then be used to perform various aggregation operations on the grouped data. Options A, B, C, and E do not return a GroupedData object.

azure_bimonsterOption: D
Feb 8, 2024

.groupBy() is correct one