CSV and JSONL — the two formats AI moves data in — step 8 of 9
Write a function load_jsonl(path) that opens the file at path,
iterates one line at a time, parses each line with json.loads, and
returns the resulting list of dicts.
The starter writes three records into /tmp/runs.jsonl. Calling
load_jsonl and printing the id of each record should produce:
1
2
3
⌘↵ runs the editor.read, then continue.
Write a function load_jsonl(path) that opens the file at path,
iterates one line at a time, parses each line with json.loads, and
returns the resulting list of dicts.
The starter writes three records into /tmp/runs.jsonl. Calling
load_jsonl and printing the id of each record should produce:
1
2
3
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.