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
3 weeks, 3 days agoSaiPavan10
7 months agoYiJiaSu
8 months, 2 weeks agoAhlo
8 months, 1 week ago