QuestionQ263
VerifiedDeveloping Code for Data Processing using Python and SQLA junior data engineer is asked to build a streaming data pipeline with a grouped aggregation using DataFrame df. The pipeline must calculate average humidity and average temperature for every non-overlapping five-minute interval. Incremental state information 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 complete this task.
Community Discussion