HF RL Explorer

Write csvsum.py FILE COLUMN: sum a CSV column (2 decimals, empty=0, quoted commas), exit 2 with stderr…

Write csvsum.py FILE COLUMN: sum a CSV column (2 decimals, empty=0, quoted commas), exit 2 with stderr…: a task in agent-harbor-tasks (Harbor dataset). I need a tiny CLI: python csvsum.py FILE COLUMN prints the sum of that column of a comma-separated CSV (first row is the header) with 2 decimals…

The task

I need a tiny CLI: `python csvsum.py FILE COLUMN` prints the sum of that column of a comma-separated CSV (first row is the header) with 2 decimals, e.g. `152.40`. Empty cells count as 0. If the column doesn't exist, print an error on stderr and exit with status 2. There's a sample in data/expenses.csv.

Part of efederici/agent-harbor-tasks.