
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
This course contains the use of artificial intelligence.
Will my flight arrive late? In this course you build OnTime, a data science product that answers that question two hours before departure, from raw public data to a tested prediction API. One project runs through every section, so each new tool works on the same data and on the same question. The course draws on 7,049,869 US flight records (September 2025 to August 2026); the predictor covers departures from the 30 busiest airports.
How the lessons work
One concept per lesson, with code you run yourself.
The broken version comes first. Most lessons start from a mistake you see on screen: a model with a "perfect" PR-AUC of 1.0000 because one column leaks the answer, two local clocks subtracted as if they were one, which gives half the flights of two months a wrong duration, a chart that draws a 1.88x gap as 28.75x. Then the fix, then the same run again.
By hand first, then the library: a mean in NumPy before pandas, a confusion matrix before scikit-learn, a drift score before the monitoring code.
Every number is checked. Each coding lesson comes with a test file, and every number in the videos was measured, with the set of flights it was measured on.
Honest results stay in. Some fixes changed almost nothing, and the lesson says so.
What you build, section by section
Setup: a virtual environment, the whole sample product in one command, every test passing offline.
Foundations: Python and NumPy for data, Jupyter notebooks, the product's target and prediction moment, collecting flights and weather.
SQL with DuckDB: counts, GROUP BY, joins, time zones, window functions, CTEs, data quality rules, a Parquet warehouse.
pandas: dtypes, selection, vectorizing, missing values, dates, merges, groupby, reshaping, outliers, and when SQL is the better tool.
Statistics: distributions, correlation, confidence intervals, hypothesis tests, multiple testing, Simpson's paradox, conditional probability.
Visualization: matplotlib, seaborn, plotly, and a Streamlit dashboard with filters and a SQL box.
Machine learning (40 lessons): regression, logistic regression, trees, gradient boosting, leakage, time splits, cross-validation, tuning, calibration, thresholds, importance, clustering, a forecast, a neural network and error analysis. On the August test month, the models climb from a PR-AUC of 0.2908 (always "on time") to 0.6942 (LightGBM).
LLM-assisted analysis: plain English to SQL with a local model, a read-only gate, and checks for answers that run and are wrong.
MLOps: seeds, MLflow, a FastAPI service that refuses bad input, training–serving skew, a monthly job, monitoring, pipeline tests, Docker, CI with a release gate, and responsible data.
Capstone: the whole chain on a new month, and the same skeleton for your own data.
What you get
The working OnTime project, with 346 tests that run offline on a small sample.
A folder for every coding lesson: its code, sample data, a test file and a Jupyter notebook generated from the code (129 notebooks).
10 section quizzes (96 questions), a 50-question practice test and 12 coding exercises.
English and Turkish subtitles.
What this course does not cover
Deep learning frameworks: one lesson builds a small neural network with scikit-learn; there is no PyTorch, and no image or text models.
Big data clusters and cloud deployment: everything runs on one computer with DuckDB, and the API runs in Docker on your own machine.
A hosted CI service: the lesson writes a GitHub Actions workflow and runs each of its steps by hand on one computer; the workflow is not run on GitHub.
Cancellations: OnTime does not predict them.
Power BI: a written guide shows how to read the same Parquet file; it was not tried in Power BI itself.
The LLM section uses a free local model (qwen2.5-coder:7b through Ollama), not a paid API; retrieval and agents are not covered.
The full 12 months (about 6.7 GB on disk) are optional: the lesson code runs on the small samples in the course files, and where the full data gives a different number, the video shows both.
Data sources: flight data from the U.S. Department of Transportation, Bureau of Transportation Statistics (Airline On-Time Performance); weather data from NOAA National Centers for Environmental Information (GHCN-Daily); airport locations from OurAirports. The course files contain small subsets prepared for teaching, not original, unaltered agency data. All analyses are the instructor's own. This course is not affiliated with, and no endorsement is implied by, these agencies.