Convert a Pandas DataFrame to a Dictionary
Convert a Pandas DataFrame to a Dictionary: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that converts a Pandas DataFrame to a Python dictionary where the first column values become dictionary keys and the remaining columns in each row become the corresponding values as lists.
Part of PrimeIntellect/Terminal-Lego-15k.