lesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the joblesson 1 of 5 · csv, jsonl, parquet - which file earns the jobcsv, jsonl, parquet - which file earns the job
Checkpoint
One last thing before we move on. pass this to mark the lesson done, or skip and keep moving. hop to the next when you're ready.
Prove the format tradeoff in code. Write csv_round_trip(record) (DictWriter to a StringIO, DictReader back) and jsonl_round_trip(record) (json.dumps then json.loads). Print whether each round-trip preserves the record exactly, then the repr of the CSV-returned amount.