~/talk

From Pandas to PySpark

Talkat PyData Virginia 2025 · 2025-04-18..04-19· [python]
links:none on file
slides:none on file

Hands-on roadmap for taking pandas code to PySpark using an anime recommendation dataset in Colab, showing concrete commands to install PySpark, create a SparkSession, load CSVs, infer and explicitly set schemas, and convert back to pandas. Demonstrates reading cleaning and transforming millions of records with timing notes (cells that take minutes for actions), builds an ETL-like pipeline (joins, explode, casts), explains lazy transforms vs actions, and shows optimizations: caching, broadcast joins and repartition to fix skew — all run end-to-end in the notebook.

AI-written summary · about

  1. 0:00Workshop introduction
  2. 1:50Transition to PySpark
  3. 4:19Spark and MapReduce background
  4. 8:21Spark vs Hadoop and Excel
  5. 14:55PySpark setup in Colab
  6. 22:18Spark session and data load
  7. 28:11Schema inference in PySpark
  8. 31:50Data type changes and cleaning
  9. 33:13Transformations vs actions
  10. 34:22Spark architecture
  11. 39:50Lazy evaluation and DAGs
  12. 41:57Data cleaning and nulls
  13. 49:31Immutability in PySpark
  14. 55:35String cleaning and manipulation
  15. 57:46Shuffling and performance
  16. 1:00:20Broadcast joins and optimizer
  17. 1:02:50Spark SQL API
  18. 1:04:56Catalyst optimizer and caching
  19. 1:05:59Switch back to pandas
  20. 1:07:24Use cases and scaling
  21. 1:10:12Frequently asked questions and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.