Answers for "pyspark group by and average in dataframes"

0

pyspark group by and average in dataframes

df.groupBy("Profession").agg({'Age':'avg', 'Gender':'count'}).show()
Posted by: Guest on December-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language