Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyspark groupby sum

from pyspark.sql import functions as func
prova_df.groupBy("order_item_order_id").agg(func.sum("order_item_subtotal")).show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pyspark #groupby #sum
ADD COMMENT
Topic
Name
6+2 =