Pandas from the Inside
summary
Slides and code dig into pandas internals using numpy arrays and real AFL game data and build a season ladder that matches the AFL website. Concrete claims include microbenchmarks: Python sum ~10 ms vs numpy sum ~1.2 ms and calling Python sum on a numpy array ~15× slower; column access: .values ~35 ms vs two-column frame ~0.5 ms vs single Series ~2 µs. Key mechanisms are block manager, take indexing, and cached series plus groupby/concat tradeoffs.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 4:59Python lists vs NumPy arrays
- 15:42NumPy indexing deep dive
- 22:15Pandas structure overview
- 26:14Pandas internals overview
- 30:35Loading AFL football data
- 37:53Rebuilding AFL Premiership ladder
- 54:19Reformatting columns and indexes
- 1:02:21Multi-index operations
- 1:07:05Efficient row selection
- 1:11:03Calculated columns and warnings
- 1:16:22GroupBy aggregation tips
- 1:18:30Final results and key takeaways








