PYSPARK FOR PYTHON DEVELOPERS

Build your first PySpark pipeline on your own machine.

Start with the free guide to understand Spark, DataFrames and lazy execution. When you are ready to build something, the Starter Kit gives you the code, data, tests and exercises.

No subscription. The kit code is tested with PySpark 4.2.0.

C:\LEARN\PYSPARK> pipeline.py
reading  sales.csv
joining  customers.csv
writing  output/enriched_sales

transaction_id  customer  gross
101             Alice     275.55
102             Bob       126.00
103             Charlie   475.82
104             David      95.72

4 valid transactions

START HERE

Read the beginner guide free

Understand the mental model before worrying about cluster tuning.

First page of PySpark for Beginners: Mastering the Basics

PySpark for Beginners: Mastering the Basics

The guide explains what Spark does, how a local cluster works, why transformations are lazy, and how to create and process your first DataFrame.

  • Install PySpark and start a local Spark session
  • Create a DataFrame and inspect its schema
  • Read CSV data and add calculated columns
  • See the input and output for every example

Free PDF. No payment details required. Your email is not shared or sold.

WHEN YOU WANT TO BUILD IT

The PySpark Starter Kit

A small working project that reads messy CSV input, applies explicit schemas, removes incomplete and duplicate sales, joins customer data, calculates totals and writes Parquet.

pyspark-starter-kit/
|-- guides/
|-- data/
|-- notebooks/
|-- src/pipeline.py
|-- tests/
|-- exercises/
|-- solutions/
`-- cheatsheets/

FREE TUTORIALS

Solve one PySpark problem at a time

Install PySpark locally

Install PySpark on Windows, WSL or Ubuntu, connect it to VS Code, then verify a real local session.