Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
Pyspark Aggregation on multiple columns
Victor Yarema
Programming language:
Whatever
2021-08-16 19:10:32
0
Q:
Pyspark Aggregation on multiple columns
Sumner Evans
Code:
Whatever
2021-09-24 18:43:34
df.groupBy("year", "sex").agg(avg("percent"), count("*"))
0
Tags
multiple
columns
Related
pyspark concat columns
dataframe groupby multiple columns
how to add the sum of multiple columns into another column in a dataframe
python- find multiple values in a column
how to combine all columns into one column in r
New to Communities?
Join the community