How to write a function with multiple agg like sum, first, collect_set, count_distinct in pyspark?

前端 未结 0 1750
南方客
南方客 2021-01-11 21:53
data = data.groupby(columns_for_groupby).agg(first(\'AGE\').alias(\'AGE\'),
    first(\'WEIGHT\').alias(\'WEIGHT\'),
    first(\'MOBILE\').alias(\'MOBILE\'),
    sum         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题