Agregasi Pyspark di beberapa kolom

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