Home›Library›AI & Data Science
Curated LibraryPySpark with Databricks for Beginners: DataFrames, Transformations and Spark SQL
A hands-on introduction to Apache Spark and PySpark run in Databricks Community Edition. It begins with Spark's background, architecture and workspace setup. It then covers creating, reading, writing, transforming, aggregating and combining DataFrames, and finishes with Spark SQL. It suits aspiring data engineers, analysts and developers who know a little Python or SQL and are new to distributed data processing.
- 33 lessons
- 3h 37m 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 Hadoop led to Spark, and describe Spark's architecture and ecosystem components
- Set up a Databricks Community Edition workspace, create a compute cluster and work in notebooks and the Databricks file system
- Create DataFrames with createDataFrame and define schemas using column names, DDL strings and StructType
- Read and write CSV, JSON, Parquet and Delta Lake data with DataFrameReader and DataFrameWriter, including write modes
- Select, rename, cast, filter, deduplicate, sort, group and aggregate data, and apply string, math and date/time functions
- Combine DataFrames, use SQL and conditional expressions, and query data with Spark SQL through temporary views
Prerequisites
- Basic Python familiarity (variables, functions, lists and dictionaries)
- Helpful but not required: basic SQL knowledge
- A free Databricks account to follow the demos
Course Curriculum
33 lessons · 3h 37m- 01Welcome to the Series1:35
- 02How Hadoop and Apache Spark Transformed Modern Data Processing6:02
- 03Introduction to the Apache Spark Architecture2:54
- 04The Apache Spark Ecosystem4:05
- 05Databricks Community Edition: Set Up and Overview4:46
- 06Creating a Compute Cluster in Databricks Community Edition5:08
- 07Introduction to Databricks Notebooks11:14
- 08Enabling the Databricks File System Browser1:26
- 09Databricks File System Utilities8:10
- 10Anatomy of PySpark Code4:37
- 11Creating DataFrames in PySpark17:54
- 12How to View DataFrames in Databricks5:38
- 13Introducing the DataFrameReader and DataFrameWriter Classes6:37
- 14Reading and Writing CSV13:55
- 15Reading and Writing JSON5:28
- 16Reading and Writing Parquet and Delta Lake5:53
- 17Write Modes3:08
- 18Selecting Columns5:36
- 19Renaming Columns6:15
- 20Introduction to DataFrame Transformations7:07
- 21Changing Data Types with Cast5:31
- 22Introduction to PySpark String Functions10:43
- 23Introduction to PySpark Math Functions6:38
- 24Introduction to PySpark DateTime Functions10:17
- 25Filtering a DataFrame9:53
- 26Removing Duplicate Rows2:45
- 27Grouping and Aggregating DataFrames6:15
- 28Sorting and Limiting DataFrame Results4:18
- 29Combining DataFrames10:21
- 30SQL Expressions7:18
- 31Conditional Expressions5:13
- 32Temporary Views4:18
- 33Executing SQL Queries in PySpark5:58
About the Instructor
Pathfinder Analytics
YouTube creator
The lessons in this course were produced by Pathfinder Analytics and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Pathfinder Analytics 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
