Why do I need to know Python- I'm a pandas user
summary
Argues that concrete Python knowledge pays off: using contextlib.closing fixes openpyxl file locks, pathlib + regex picks CSVs reliably, and itertools.product plus comprehensions generates scenario grids cleanly. Demonstrates a 2× performance surprise where mask-then-square beats indexed selection on a NumPy array, finds a tuple-allocation discontinuity at 59→60 elements, and rewrites an optimizer and a genetic-algorithm simulator as generators so external stopping conditions work; code examples run and produce the reported timings and plots.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:50Python basics for pandas
- 6:26Excel data with Python
- 10:40Looping beyond vectorization
- 18:43Generators for computations
- 28:59Object orientation for code
- 37:44Python tricks for pandas
- 41:20Q&A








