QuestionQ182
VerifiedData Processing & TransformationsA data engineer receives a PySpark DataFrame named df containing the columns product and revenue. The data engineer must calculate complex aggregations to identify every product’s total revenue, average revenue, and transaction count.
Which code snippet should the data engineer use?
Community Discussion