Agregacja PYSPARK na wielu kolumnach

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