Create a deterministic data pipeline that processes a CSV file of sensor readings and produces a JSON…
Create a deterministic data pipeline that processes a CSV file of sensor readings and produces a JSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). GOAL: Write a script /app/pipeline.py that reads a CSV file from /data/readings.csv and writes a JSON report to…
The task
GOAL: Write a script `/app/pipeline.py` that reads a CSV file from `/data/readings.csv` and writes a JSON report to `/data/report.json`. The script must handle all edge cases silently (no crashes, no partial output — either complete valid JSON or exit with code 1 and an empty/missing output file).
Part of ai-and/termgrade-environments.