Course

PySpark for Data Engineering

Learn Apache Spark for real on your own laptop — how Spark thinks in drivers, executors, and lazy plans; DataFrames and Spark SQL over ten million real taxi trips; execution plans, partitions, shuffles, and caching; and a production-shaped ETL with schemas, quality gates, and logging.

At a glance

Level
Intermediate
Lessons
10 lessons across 2 modules
What you build
A full Spark ETL over real NYC taxi data
Cost
100% free · no cluster · runs on your laptop

What you'll build

You'll rejoin CityFlow, the mobility-analytics team from Scaling Python for Data Engineering, as its data outgrows what one machine should carry alone. Using Apache Spark in local mode — a real SparkSession on your own laptop, no cluster or cloud account required — you'll learn how Spark thinks (drivers, executors, lazy evaluation, the DAG), master DataFrames and Spark SQL on nearly ten million real NYC yellow-taxi trips, read execution plans to see the optimizer at work, tame partitions, shuffles, and caching where Spark performance actually lives, and finish with a production-shaped ETL pipeline with schemas, data-quality gates, quarantine, and structured logging. Every result is verified against the numbers the previous course established — same data, same answers, cluster-scale tools.

Course syllabus

Work through the modules at your own pace. Each lesson is a self-contained, hands-on read.

1 Why Distributed? 5 lessons · 1 week
2 SparkSession, RDDs & Lazy Evaluation 5 lessons · 1 week

Before you start

You'll need solid Python and comfortable pandas, and you'll get the most out of this course after Scaling Python for Data Engineering — this course reuses its dataset, its running example, and its measured results as ground truth. No prior Spark or cluster experience is assumed.

Set up your environment

Everything runs locally with Python 3.10+ and a Java runtime (Spark runs on the JVM). There is nothing to pay for and no cluster to rent.

  1. Install a JDK (17 or 21 — e.g. Adoptium Temurin), then
  2. Install the packages the course uses:
pip install pyspark pandas pyarrow

Every lesson fetches its data from a public URL — the same real NYC Taxi & Limousine Commission trip files the previous course used, so your results are comparable end to end.

Ready to think in clusters?

Start by finding the honest ceiling of one machine — then learn the engine built for what lies past it.

Start the first lesson

Want this taught live to your team?

Mehdi runs tailored corporate workshops on this exact material — hands-on, in-person or remote.

Learn about corporate training →
Sponsor

Keep DATATWEETS free. Help fund practical data, AI, and engineering lessons for learners worldwide.

Buy Me a Coffee at ko-fi.com