Skip to content
Forward Deployed

Forward Deployed
AI Engineering Foundations: sections and modules
T2.1

Python & Data Toolkit Refresher

Write idiomatic Python: data types, control flow, functions and PEP 8.

Lessons
5 lessons
By
Sourav Banerjee
Prerequisites
None
5 lessons

Notebook-only lessons

These course lessons have no page here yet. Work through their notebooks on GitHub.

Practise and Check

Deliverable
Data warm-up: load a CSV into pandas and into SQLite, answer five questions both ways, and expose one of them through a small Flask endpoint.
Assessment
Answer the five Interview questions without notes, then run the lab.
Interview probe
Larkspur's nightly evaluation sends 200 golden questions to the model. A teammate rewrote it with `asyncio.gather` to make it faster, and it takes exactly as long as before. What do you look for?
Common mistakes
  • Normalising rows with np.linalg.norm without keepdims=True
  • Building SQL with an f-string instead of a ? placeholder
  • Calling blocking llm.invoke inside async def and expecting concurrency

Your Progress

How confident are you with this module?

1 means "I could not explain it yet"; 5 means "I could teach it". Rate again any time.

 

Saved in this browser when you leave the box.