DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+1 =
Submit