Skip to content
RED SAGSkills
medium10 pts · first answer countssparkspark-sqlaggregation

Subtotals with rollup

df.rollup("region", "city").agg(F.sum("sales")) is run on data with 2 regions and 5 cities in total. Which extra rows appear besides region-city totals?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions