internalsGet Pro

Module 03 · Lesson 2 of 10Pro

Reading and writing CSV, JSON and Parquet in Python

Level
Beginner
Topic
Python for data engineering
Reading time
14 min

When you finish this page you can

  1. Say which of CSV, JSON and Parquet stores types, and where a reader’s types come from when the file doesn’t.
  2. Read a CSV and a JSON Lines file in Python with every column type declared, so a changed file fails loudly instead of loading wrong values.
  3. Write a Parquet file from DuckDB so readers never see half of it, and read back only the columns a question needs.
  4. Choose a format for each file a nightly job reads or writes, and say what would change the choice.
  1. Data sources: databases, events, files and APIs13 min
  2. The Python data toolkit: libraries that matter12 min

1,240 deliveries matched nothing

At 05:00 on Tuesday, the courier partner drops deliveries_2026-11-09.csv into ’s storage bucket. Meera’s new Python step reads it and matches each row to Kartly’s shipments by awb, the courier’s tracking number. 1,240 of about 60,000 rows match nothing.

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