how to aggregate multiple columns in pyspark code example
Example: how to aggregate multiple columns in pyspark
df.groupBy("year", "sex").agg(avg("percent"), count("*"))
df.groupBy("year", "sex").agg(avg("percent"), count("*"))