HF RL Explorer

Task: Converting List of Header and Row Lists into Pandas DataFrame

Task: Converting List of Header and Row Lists into Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). You are given data in the form of a list of lists, where the first sub-list contains column headers and the remaining sub-lists contain row data. Your task is to write a Python script…

The task

You are given data in the form of a list of lists, where the first sub-list contains column headers and the remaining sub-lists contain row data. Your task is to write a Python script that converts this structure into a pandas DataFrame and saves the result to a CSV file.

Part of PrimeIntellect/Terminal-Lego-15k.