pyspark group by and average in dataframes

Solutions on MaxInterview for pyspark group by and average in dataframes by the best coders in the world

showing results for - "pyspark group by and average in dataframes"
Giulio
18 Jun 2016
1df.groupBy("Profession").agg({'Age':'avg', 'Gender':'count'}).show()
2