Как объединить несколько столбцов в pyspark

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