Implement a CLI tool at /app/topk that reads a UTF-8 encoded CSV file and outputs the top K rows sorted by a…
Implement a CLI tool at /app/topk that reads a UTF-8 encoded CSV file and outputs the top K rows sorted by a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The tool is invoked as: python /app/topk <csv path <column name <K - The CSV file may be…
The task
**Input contract:** - The tool is invoked as: `python /app/topk <csv_path> <column_name> <K>` - The CSV file may be arbitrarily large (stream it; do NOT load entirely into memory). - The CSV file has a header row with column names. - The `<column_name>` is the name of a numeric column (integer or float values…
Part of ai-and/termgrade-environments.