Jak agregować wiele kolumn w Pyspark

df.groupBy("year", "sex").agg(avg("percent"), count("*"))
macarrony00