Home›Library›AI & Data Science
Curated LibraryPySpark for Beginners: DataFrames, Spark SQL and Window Functions
A short, code-along introduction to Apache Spark with Python. It covers Spark's architecture, local setup, loading CSV data, working with columns and SQL functions, and sorting, grouping and window functions. It suits Python users who are new to Spark and want a practical start in data engineering.
- 24 lessons
- 1h 56m 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 what Spark is and how the driver, workers, executors and cluster manager fit together
- Set up a local PySpark development environment with Python, pip and a virtual environment, and run a first application
- Load CSV files into DataFrames using the header and schema-inference options, and understand Spark data types
- Reference and transform columns with the Column class and the Spark SQL functions library, and find what you need in the API reference
- Write queries using SQL expressions as well as the DataFrame API
- Sort, group and aggregate DataFrames, and use window functions for more involved use cases
Prerequisites
- Basic Python programming knowledge
- Comfort installing software and using a terminal or IDE
- Basic familiarity with SQL and tabular data helps but is not required
Course Curriculum
24 lessons · 1h 56m- 01Course Introduction1:38
- 02What to Expect1:50
- 03What Is Spark?6:02
- 04High-Level Architecture: Driver, Workers, Executors and Cluster Manager2:48
- 05Understanding the Spark SQL API5:32
- 06Development Setup: IntelliJ, Python, pip and venv6:07
- 07Our First Spark Application4:53
- 08Reading CSV Files7:27
- 09Using the CSV Header Option2:19
- 10Inferring the Schema3:09
- 11Spark Data Types1:32
- 12Referencing Columns5:54
- 13Exploring the API Reference4:32
- 14Using Column Functions2:57
- 15Assignment: Implement a CSV Loader7:02
- 16SQL Functions Overview2:44
- 17Using SQL Functions in Code5:29
- 18Using SQL Expressions6:56
- 19Sorting the Rows of a DataFrame6:36
- 20Grouping and Aggregating a DataFrame11:47
- 21Window Functions (Part 1)3:09
- 22Window Functions (Part 2)7:33
- 23Window Functions (Part 3)7:09
- 24What's Next1:02
About the Instructor
Philipp Brunenberg
YouTube creator
The lessons in this course were produced by Philipp Brunenberg and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Philipp Brunenberg 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
