Task: Fix List of Lists Append Bug in CSV Column Extraction
Task: Fix List of Lists Append Bug in CSV Column Extraction: a task in Terminal-Lego-15k (Harbor dataset). When processing CSV data in Python, a common task is to extract specific columns and group their values into separate sublists. A naive approach using n to initialize a list of empty lists…
The task
When processing CSV data in Python, a common task is to extract specific columns and group their values into separate sublists. A naive approach using `[[]]*n` to initialize a list of empty lists creates a subtle bug: all sublists are actually references to the **same** list object, so appending to one appends to all.
Part of PrimeIntellect/Terminal-Lego-15k.