What a data pipeline is
What it is
A data pipeline is a series of steps that turn raw data into something useful, run automatically on a schedule or when new data lands. Each step:
- reads from the outputs of earlier steps;
- does one job: clean, join, aggregate, compute features;
- writes a result that later steps read.
The steps and their dependencies form a DAG (a directed graph with no loops): each arrow points from a step to the steps that need it.
Why it matters
ML depends on many such steps, and they must run in the right order, every day, without anyone watching.
- A training table may depend on twenty upstream tables.
- If one is late or wrong, everything after it is too.
- Thinking in steps and dependencies makes failures local and fixable.
In the real world: Kirana Kart's nightly training pipeline for delivery times has about a dozen steps, from loading yesterday's orders and GPS pings to writing the finished training table.
Visual example
PipelineEach box is a separate, re-runnable step.
One giant script that does everything. When it fails at step 14 of 20, it starts again from step 1, and nobody can test a single part of it.