Home›Library›AI & Data Science
Curated LibraryPySpark from Basics to Performance Optimization: DataFrames, Spark SQL, Delta Lake and Pipelines
A 35-lesson walkthrough of Apache Spark with PySpark. It starts with architecture and local setup, then covers the DataFrame API, reading and writing file formats, Spark SQL, and joins. The second half focuses on performance tuning (shuffle, caching, skew, AQE, memory), Delta Lake, Spark Connect and PyTest. It suits beginners and aspiring data engineers who know some Python and SQL.
- 35 lessons
- 9h 11m total
- AI & Data Science
- English
- Earns YodaCoins
Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.
What You'll Learn
- Explain how Spark runs a job: driver, executors, stages, tasks, shuffles, lazy evaluation and DAGs
- Set up PySpark locally with Jupyter Lab and create a SparkSession
- Transform DataFrames with select/expr, casts, case-when, string, date and null handling, unions, aggregations and window functions
- Read and write CSV, Parquet, ORC and JSON data, including read modes, schemas, flattening nested JSON and partitioned writes
- Run SQL on Spark using temp views, the catalog and a Hive metastore, and write UDFs
- Tune Spark jobs with caching, broadcast joins, bucketing, salting for skew, AQE and partitioning, and read explain plans and the Spark UI
- Create and optimize Delta Lake tables with time travel, Z-ordering and liquid clustering, and unit test PySpark code with PyTest
Prerequisites
- Basic Python programming
- Basic SQL familiarity helps
- A laptop able to run Jupyter or Docker, or a free Databricks Community account
Course Curriculum
35 lessons · 9h 11m- 01Introduction to Spark: Why Spark and What Its Components Are2:55
- 02How Spark Works: Driver, Executors, Stages and Shuffle4:47
- 03Transformations, Actions, Lazy Evaluation and Partitions5:45
- 04Spark DataFrames, Execution Plans and the DAG3:58
- 05Setting Up PySpark Locally with Jupyter Lab20:19
- 06SparkSession, Your First DataFrame and the Spark UI11:15
- 07Basic Structured Transformations Part 1: Schemas, Columns, select, expr and selectExpr13:06
- 08Basic Structured Transformations Part 2: Cast, Add, Rename and Drop Columns12:15
- 09Working with Strings, Dates and Nulls16:15
- 10Sorting, Union and Aggregation10:10
- 11Window Functions, Unique Data and Databricks Community Edition10:28
- 12Repartition vs Coalesce and PySpark Joins13:23
- 13Reading CSV Files, InferSchema and Read Modes17:08
- 14Reading Parquet and ORC Files and Columnar Format Benefits10:33
- 15Reading, Parsing and Flattening JSON Data17:50
- 16How Spark Writes Data: Write Modes and Partitioned Writes14:08
- 17Spark Execution on a Cluster: Cluster Managers, Deploy Modes and Spark Submit12:37
- 18User Defined Functions (UDFs)9:42
- 19Reading the DAG, Explain Plans and Shuffle Tasks16:47
- 20Understanding and Optimizing Shuffle15:14
- 21Caching in Spark: Cache vs Persist and Storage Levels13:19
- 22Broadcast Variables and Accumulators12:35
- 23Optimizing Joins: Sort Merge, Broadcast and Bucketing28:17
- 24Static vs Dynamic Resource Allocation10:30
- 25Fixing Data Skew and Spillage with Salting21:17
- 26Adaptive Query Execution (AQE)11:52
- 27Spark SQL, Hints, Catalog and Hive Metastore19:20
- 28Reading and Writing Azure Cosmos DB with Spark21:17
- 29Getting Started with Delta Lake: Time Travel, Schema Evolution and Vacuum34:15
- 30Optimizing Data Scanning with Partitioning13:42
- 31Data Skipping, Z-Ordering and Compaction in Delta Lake18:45
- 32Delta Deletion Vectors and Liquid Clustering12:53
- 33Spark Memory Management and OOM Errors48:25
- 34Spark Connect vs SparkSession23:17
- 35Writing PySpark Unit Tests with PyTest22:26
About the Instructor
Ease With Data
YouTube creator
The lessons in this course were produced by Ease With Data and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Ease With Data is not affiliated with YodaHut.
Visit the channel on YouTubeMore in the Library: AI & Data Science

Time Series Forecasting with Python: ETS, ARIMA, Machine Learning, Deep Learning and Prophet

Time Series Forecasting in Python: ARIMA, VAR, Prophet and LSTM

Time Series Analysis and Forecasting in Python: From Stationarity to ARIMA and SARIMA

ComfyUI Academy: Build Stable Diffusion Workflows from Scratch

ComfyUI for AI Image Generation: Stable Diffusion, Flux, LoRAs, Upscaling and Editing
