pyspark group by and average in dataframes

32

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

Comments

Submit
0 Comments