pyspark group by and average in dataframes

40

df.groupBy("Profession").agg({'Age':'avg', 'Gender':'count'}).show()

Comments

Submit
0 Comments