Quiz 6 Question 8 of 20

A data engineer has a Lakehouse table of individual ticket scans and needs to produce, via a PySpark notebook, a daily total visitor count per branch for a dashboard. Which PySpark pattern correctly produces one row per branch per day with a summed count?

Select an answer to reveal the explanation.

Motivation