Jupyter Notebook Lab — Module 08#

Files, APIs & Data Ingestion

Practice reading and writing CSV and JSON files, parsing simulated API responses, and building a validated data ingestion pipeline.


Download#

📓 Student Notebook .ipynb 🔑 Answer Key coming soon

Open the .ipynb file in Google Colab by selecting File → Upload notebook.


What You’ll Practice#

  1. Reading and writing text files using open() and context managers
  2. Parsing CSV data with csv.DictReader
  3. Serializing and deserializing data with json.dump() / json.load()
  4. Simulating and parsing an API JSON response structure
  5. Building a complete validated ingestion pipeline: read → validate → enrich → save

Learning Objectives#

By completing this notebook you will be able to:

  • Use open() and context managers to read and write files safely
  • Parse CSV data into Python dictionaries using csv.DictReader
  • Serialize and deserialize data with json.dump() and json.load()
  • Apply validation logic to ingested data before passing it to analysis
  • Recognize the structure of a JSON API response and extract relevant fields

Next Module: Module 09 — Pandas & DataFrames →