Which of the following code blocks fails to return the number of rows in DataFrame storesDF for each distinct combination of values in column division and column storeCategory?
A.
storesDF.groupBy((col("division"), col("storeCategory")]).count()
B.
storesDF.groupBy("division").groupBy("storeCategory").count()
C.
storesDF.groupBy(["division", "storeCategory"]).count()
D.
storesDF.groupBy("division", "storeCategory").count()
E.
storesDF.groupBy(col("division“), col("storeCategory")).count()
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
PushpakKothekar
2 months, 1 week agoSaiPavan10
8 months, 2 weeks agoYiJiaSu
10 months agoAhlo
9 months, 3 weeks ago