Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

spark group by alias

from pyspark.sql.functions import max

df.groupBy('column').agg(max("diff").alias("maxDiff"))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #spark #group #alias
ADD COMMENT
Topic
Name
1+1 =