Task: Write CSV Headers Only Once When Appending Data from JSON
Task: Write CSV Headers Only Once When Appending Data from JSON: a task in Terminal-Lego-15k (Harbor dataset). You are given a JSON file containing sensor data. Each entry in the JSON array may or may not contain a "light" key. Your task is to write a Python script that:
The task
You are given a JSON file containing sensor data. Each entry in the JSON array may or may not contain a `"light"` key. Your task is to write a Python script that:
Part of PrimeIntellect/Terminal-Lego-15k.