internalsGet Pro

Module 04 · Lesson 2 of 10Pro

CSV and JSON: simple but costly at scale

Level
Beginner
Topic
Data formats and file storage
Reading time
14 min

When you finish this page you can

  1. Say what the CSV spec (RFC 4180) fixes and what it leaves for the sender and the reader to agree.
  2. Explain why a JSON number may not arrive exactly, and how to send money, large ids and dates safely.
  3. Choose between JSON Lines and one big JSON array for a file, and say what each costs when a file is cut short.
  4. Estimate how many bytes of a CSV or JSON Lines file are data and how many describe it.
  1. Reading and writing CSV, JSON and Parquet in Python14 min
  2. Row and columnar storage: why layout matters13 min

60,000 orders sent, 212 parcels left behind

is an online store in India, with about 60,000 orders a day. Meera, its data engineer, runs a nightly job that copies orders from the store’s database into . One of its outputs is a file for the courier partner: orders_2026-11-09.csv, every order to pick up on Tuesday.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan