What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-03 09:11:03
how to get avg value in pyspark dataframe
# here data is a pyspark.sql dataframe and balance is it's column # get the mean value of a column data.agg({'balance': 'mean'}).show() #or # get the max value of a column data.agg({'balance': 'avg'}).show() ------other related function ------ few possi... Add solution -
Python 2021-09-07 15:22:03
how to get variance value in pyspark dataframe
# here data is a pyspark.sql dataframe and balance is it's column # get the mean value of a column data.agg({'balance': 'mean'}).show() #or # get the max value of a column data.agg({'balance': 'avg'}).show() ------other related function ------ few possi... Add solution