Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

coursera spark sql max count

df.groupBy(color).max("count").show();

+-----------+----------+
|color      |max(count)|
+-----------+----------+
|        red|         5|
|       blue|         3|
|      brown|         2|
|      green|         2|
+-----------+----------+
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #coursera #spark #sql #max #count
ADD COMMENT
Topic
Name
6+8 =