
Ultimate access to all questions.
Which of the following code blocks correctly counts the number of rows in DataFrame storesDF for each unique combination of values in the columns division and storeCategory?
A
storesDF.groupBy(Seq(col(“division”), col(“storeCategory”))).count()
B
storesDF.groupBy(division, storeCategory).count()
C
storesDF.groupBy(“division”, “storeCategory”).count()
D
storesDF.groupBy(“division”).groupBy(“StoreCategory”).count()
E
storesDF.groupBy(Seq(“division”, “storeCategory”)).count()