Indroduction to the PySpark DataFrame API
summary
PySpark demonstrates the Spark DataFrame API (introduced in Spark 1.3) as a declarative layer that compiles queries to JVM bytecode so Python data frames get same execution speed as Scala. The demo loads JSON and CSV, reads Parquet, joins employees and salaries, caches results, registers user-defined functions distributed to workers, and pulls a reduced result into pandas. A toy dataset returns 1797 male and 120000 female and highlights that RDDs in Python suffer extra serialization overhead.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:14Apache Spark core concepts
- 7:44PySpark basics and cluster flow
- 9:55First RDD demo
- 14:31PySpark DataFrame API
- 15:14Spark SQL and DataFrame overview
- 17:43DataFrame API performance
- 18:47Creating DataFrames from sources
- 20:16Catalyst optimizer and execution plans
- 25:26First DataFrame tweet example
- 28:13Joining CSV datasets
- 31:19Caching DataFrames
- 34:18Grouping and aggregating data
- 36:06User-defined functions
- 36:50PySpark with pandas
- 37:54Summary of benefits
- 40:23Q&A
related talks
24mPySpark - Data processing in Python on top of Apache Spark.
01h 22mIntroduction to Big Data Processing using Spark and Python
50mBig Data Processing and Data Science Environment in Python
30mImproving PySpark Performance: Spark performance beyond the JVM
25mScale Data Science by Pandas API on Spark
01h 13mFrom Pandas to PySpark
36mScaling data workloads using the best of both worlds: pandas and Spark
41mImproving PySpark Performance Spark performance beyond the JVM
