Skip to content

Learn PySpark

Learn how PySpark behaves before adding helpers around it. The guides will favor native DataFrame and SQL APIs, explain lazy evaluation, and call out operations that execute work on the driver or cluster.

Start here

  • Getting started: a small, local Spark example and the compatibility limits verified so far.
  • PySpark style guide: compose native expressions and transformations, make null behavior explicit, and keep execution visible.
  • Cookbook: runnable patterns for fallback values, deterministic latest-row selection, and array cleanup.
  • Examples maintained in PySparky repositories: reproducible Spark testing and Protobuf exercises with links to their source and tests.
  • Testing and performance: choose a test boundary, inspect query plans, and measure an explicit Spark action carefully.
  • PySparky Engineering Handbook: prepare and operate PySpark applications with explicit deployment, data quality, Iceberg, and dependency boundaries.

The standalone testing and Protobuf repositories give you complete local exercises. The handbook builds on those guides and links to versioned Spark, Iceberg, and PySparky project references for production decisions.