Implement a command-line tool /app/stream agg that reads a sorted CSV file from stdin and computes streaming…
Implement a command-line tool /app/stream agg that reads a sorted CSV file from stdin and computes streaming…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Given a sorted CSV file with headers, compute for each record a running aggregation over the…
The task
**Goal**: Given a sorted CSV file with headers, compute for each record a running aggregation over the previous K records (not including current). The aggregation is: count, trimmed mean (drop top and bottom P% values), and top-N most frequent values in a specific column.
Part of ai-and/termgrade-environments.