Python Lab

Data engineering for beginners: pipelines, ETL vs ELT and clean data

What data engineers do, how a data pipeline works, the difference between ETL and ELT, and a small Python pipeline you can build this week.

Sury Kashyap·10 min read·Oct 5, 2026

Data engineering is the plumbing behind every dashboard and AI model: it moves data from where it is created to where it is useful, cleaned and ready to trust.

What is a data pipeline?

A pipeline is a repeatable series of steps that takes raw data from sources (apps, files, APIs), processes it, and delivers it to a destination such as a database, data warehouse or report, ideally on a schedule without anyone copy-pasting.

ETL vs ELT

ETLELT
OrderExtract → Transform → LoadExtract → Load → Transform
Where cleaning happensBefore loading, in a separate step or toolInside the destination (e.g. a cloud data warehouse)
Good forSmaller data, strict rules on what gets storedLarge data, flexible analysis, modern cloud warehouses

Build a mini ETL pipeline in Python

import pandas as pd, sqlite3

# Extract
raw = pd.read_csv("data/orders_2026-10.csv")

# Transform
raw["order_date"] = pd.to_datetime(raw["order_date"])
clean = (raw.drop_duplicates(subset="order_id")
            .dropna(subset=["amount"])
            .assign(amount=lambda d: d["amount"].round(2)))

# Load
with sqlite3.connect("warehouse.db") as db:
    clean.to_sql("orders", db, if_exists="append", index=False)

Schedule it with Windows Task Scheduler or cron, and you have a working pipeline.

Habits of good data engineering

  • Idempotent runs: running a job twice shouldn't create duplicates.
  • Checks: fail loudly if row counts drop suddenly or key columns are empty.
  • Documentation: what each table means, where it comes from, how often it updates.
  • Version control: keep pipeline code in Git, in a clean project structure.

Data comes in through data acquisition, and it is stored in a database.

Further reading

44
LinkedIn X WhatsApp
3.4K27
SK

Sury Kashyap

Sury Kashyap is an independent consultant and certified corporate trainer with over 30 years in the Indian IT industry, focused on AI, communication, marketing and digital technologies with Python.

More about Sury →

Join the discussion

Have a question or a tip to add? Comments are reviewed before they're published.