Which of the following operations returns a GroupedData object?
Which of the following operations returns a GroupedData object?
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.
.groupBy() is correct one
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.