Answers for "Pyspark Aggregation on multiple columns"

1

Pyspark Aggregation on multiple columns

df.groupBy("year", "sex").agg(avg("percent"), count("*"))
Posted by: Guest on September-14-2020

Code answers related to "Pyspark Aggregation on multiple columns"

Python Answers by Framework

Browse Popular Code Answers by Language