Answers for "how to aggregate multiple columns in pyspark"

1

how to aggregate multiple columns in pyspark

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

Code answers related to "how to aggregate multiple columns in pyspark"

Python Answers by Framework

Browse Popular Code Answers by Language