~/talk

An Introduction to PySpark

Talkat PyCon AU 2023 · 2023-08-18..08-22· [data-visualization]
slides:none on file

Compares pandas and PySpark on Brisbane library checkout logs, shows code that groups checkouts and uses window functions to group checkouts within five seconds and finds a burst of checkouts spanning about 68 seconds, demonstrates that PySpark is a thin Python API over a Scala/Java engine so collect triggers Java pickling, highlights a 2021 benchmark where Spark only beats pandas on large datasets, explains lazy transformations versus eager actions causing repeated work and plan-size out‑of‑memory errors, and mentions Apache Sedona for geospatial needs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25What is PySpark
  3. 3:12PySpark vs pandas
  4. 5:18Grouping checkouts by time
  5. 7:02Benchmarking PySpark
  6. 8:47PySpark's Java underpinnings
  7. 10:12Why distributed processing
  8. 11:59MapReduce and Spark
  9. 14:23Out of memory errors
  10. 15:46Lazy vs eager operations
  11. 17:49Java stack traces
  12. 19:14Non-deterministic joins
  13. 20:18When to choose PySpark
  14. 21:46Conclusion
~/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.