Task: Group DataFrame Rows into Lists Using Pandas GroupBy
Task: Group DataFrame Rows into Lists Using Pandas GroupBy: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that reads a CSV file containing two columns, groups the rows by the first column, and aggregates the second column values into lists for each group.
The task
Write a Python script that reads a CSV file containing two columns, groups the rows by the first column, and aggregates the second column values into lists for each group.
Part of PrimeIntellect/Terminal-Lego-15k.