QuestionQ2
VerifiedDeveloping Code for Data Processing using Python and SQLA junior data engineer must build a streaming data pipeline using DataFrame df that performs a grouped aggregation. The pipeline must calculate average humidity and average temperature for every non-overlapping five-minute interval. Incremental state data must be retained for 10 minutes to accommodate late-arriving data.
The streaming DataFrame df has this schema:
device_id INT, event_time TIMESTAMP, temp FLOAT, humidity FLOAT
Code block:

Choose the response that correctly fills the blank in the code block to finish this task.
Community Discussion