HF RL Explorer

Tea shop: flatten nested orders JSON into one CSV row per order with item quantity sum and order total

Tea shop: flatten nested orders JSON into one CSV row per order with item quantity sum and order total: a task in agent-harbor-tasks (Harbor dataset). Flatten orders.json into orders flat.csv, one row per order, columns order id,customer name,city,items,total. items = total quantity across the…

The task

Flatten orders.json into orders_flat.csv, one row per order, columns order_id,customer_name,city,items,total. items = total quantity across the order's lines (not the number of lines), total = sum of qty × price with 2 decimals. Keep the order of the JSON.

Part of efederici/agent-harbor-tasks.