Pyspark Group по и среднему в DataFrames
df.groupBy("Profession").agg({'Age':'avg', 'Gender':'count'}).show()
Fine Falcon
df.groupBy("Profession").agg({'Age':'avg', 'Gender':'count'}).show()