HF RL Explorer

Write a Python script /app/topk stream.py that reads a potentially large CSV file from stdin and computes…

Write a Python script /app/topk stream.py that reads a potentially large CSV file from stdin and computes…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - A CSV with exactly two columns: id (string) and value (float). - The first line is a…

The task

**Input format (stdin):** - A CSV with exactly two columns: `id` (string) and `value` (float). - The first line is a header: `id,value` - Subsequent lines are data rows. - The file may contain trailing whitespace, empty lines, lines with only whitespace, malformed rows, duplicate ids, and may or may not end with a…

Part of ai-and/termgrade-environments.