QuestionQ217
VerifiedData Transformation, Cleansing, and QualityA junior data engineer must build a streaming data pipeline using DataFrame df that performs a grouped aggregation. The pipeline must compute the average humidity and average temperature for each non-overlapping five-minute interval. Events are logged once per minute for each device.
The streaming DataFrame df has this schema:
device_id INT, event_time TIMESTAMP, temp FLOAT, humidity FLOAT
Code block:

Which code line correctly completes the blank in the code block to accomplish this task?
Community Discussion