anouk
0
Q:

pyspark group by and average in dataframes

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

New to Communities?

Join the community