A data engineer has been provided a PySpark DataFrame named df with columns product and revenue. The data engineer needs to compute complex aggregations to determine each product ' s total revenue, average revenue, and transaction count.
Which code snippet should the data engineer use?
A)

B)

C)

D)

Submit