Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python for AI From Zero: pandas, APIs and Your First AI App
New

Python for AI From Zero: pandas, APIs and Your First AI App

Learn Python for AI on real data: pandas, APIs, calling an AI model, checking its answers and shipping a FastAPI app
Created byAdi Tejus
Last updated 11/2026
English

What you'll learn

  • Set up Python, VS Code, a virtual environment and a local AI model, and check any machine in one command
  • Write Python with variables, lists, dictionaries, loops, if and functions on real data, and read tracebacks
  • Clean messy CSV files with pathlib and csv, and report every skipped row
  • Clean, summarise and cross-check tables with pandas, including dates that don't get silently swapped
  • Use JSON, call web APIs with timeouts and error handling, and keep API keys safe
  • Call an AI model from Python, force a fixed answer shape with Pydantic, measure it and block invented numbers
  • Ship a FastAPI web app with a page and automatic pytest tests that works even when the AI is down

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

8 sections • 8 lectures • 1h 57m total length
  • Python for AI from zero: the AI expense helper, running5:43

    Overview. Python for AI from zero: the AI expense helper, running. The finished project running first, then the plan for the course, what you need, and the course code (attached here as a download).

Requirements

  • No coding experience needed
  • A Windows, Mac or Linux computer; about 1 GB no-cost disk; 8 GB RAM is plenty
  • No API keys or paid accounts

Description

This course contains the use of artificial intelligence.

Python is the language AI is built in, and this course takes you from an empty computer to a working, tested AI app, with no coding experience needed. Everything runs on an ordinary laptop with a local AI model (smollm2, 270 MB, through Ollama): no API key, no card, and your data never leaves your computer.

You learn every idea on one real job: an office expense sheet with every problem real sheets have (dollar signs, commas, a typo, a duplicate, a missing amount, two date styles). You set up Python, VS Code and a virtual environment and check your machine in one command; learn variables, lists, dictionaries, loops and functions, and read your first traceback; clean the sheet with pathlib and csv; do the same in pandas and cross-check it; read and write JSON, call a real web API with proper error handling, and keep API keys out of your code; call an AI model from Python, force its answers into a fixed shape with Pydantic, score it on a test set, and block invented numbers; and finally ship a FastAPI web app with a page and 28 automatic tests that keeps working even when the AI model is down.

The model is tiny on purpose. You see its real mistakes (it invented $100 for a $58 train ticket), the two bugs a correct total would have hidden, and the one idea that took the receipt amounts from 4 right out of 8 to 8 out of 8. Every output shown is from a real run (31 October to 8 November 2026); the code, logs, tests, practicals and cheat sheets are included. Narration is AI-voiced; the code, runs and results are real.

The course is 2 h 14 min of video in 8 sections. Section 1 is the overview and setup; the other sections are hands-on, and every program is run for real on screen. Each hands-on section comes with a one-page cheat sheet (PDF), a short quiz, a practical with starter and solution files and an assignment with a model answer; 5 coding exercises let you write the code yourself.

Who this course is for:

  • Students and job-seekers who keep hearing that AI jobs need Python
  • Office workers who spend hours on sheets and reports every month
  • ChatGPT users who want to build something real with AI and know it works