top of page
Search
  • carlrua

Spark-dataframe-groupby-agg-multiple-columns

groupBy . The main method is the agg function, which has multiple variants. ... Pivots a column of the current DataFrame and perform the specified aggregation.












spark-dataframe-groupby-agg-multiple-columns


grouped_multiple = df.groupby(['Team', 'Pos']).agg({'Age': ['mean', 'min', 'max']}) grouped_multiple.columns = ['age_mean', 'age_min', 'age_max'] ... 939c2ea5af





2 views0 comments

Recent Posts

See All
bottom of page