QuestionQ39Verified/Developing Apache Spark™ DataFrame/DataSet API ApplicationsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following operations produces a GroupedData object?ADataFrame.GroupBy()BDataFrame.cubed()CDataFrame.group()DDataFrame.groupBy()EDataFrame.grouping_id()Show AnswerAnswerExplanationDataFrame.groupBy() groups a DataFrame by specified columns and returns a GroupedData object, which provides aggregation operations such as agg, count, and sum.Learn morepyspark.sql.DataFrame.groupBy — PySpark documentationShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion