This website uses cookies to ensure you get the best experience.
Learn more.
A Spark DataFrame expression is df.filter("amount > 0").groupBy("region").sum("amount"). What does it compute?
Published
- The sum of positive amounts for each region
- One global sum with no region grouping
- Only the largest amount in each region
- The count of all rows regardless of amount
Comments — 0
Sign in to comment