~/talk

Junior vs panda: anti-patterns of the pandas library

TalkinRussianat PiterPy 2023 · 2023-11-07..11-14· [data-science, python]
links:none on file
slides:none on file

Presents common anti-patterns when using the pandas library for data processing, identifies specific inefficient usages, and shows concrete faster alternatives (benchmarked) that improved real-project code performance up to ~60× and made results more stable. Covers benchmarks comparing approaches, selected tips from blog-style sources, and a case study about rewriting a junior-developed pandas job into a more reliable, faster pipeline.

AI-written summary · about

  1. 0:00Introduction
  2. 1:44Pandas performance issues
  3. 3:07Project constraints
  4. 4:31DataFrame iteration: itertuples vs iters
  5. 7:20Iteration test results
  6. 8:03Apply method optimization
  7. 10:51Apply with raw argument
  8. 11:33Merge operations and alternatives
  9. 14:02Reindex for optimization
  10. 15:04Merge vs join comparison
  11. 16:09Merge with indicator
  12. 17:33Merge optimization results
  13. 17:53Data type optimization
  14. 21:02int8 vs int64 types
  15. 21:43Categorical and sparse types
  16. 24:54Data type replacement results
  17. 25:15Code parallelization
  18. 26:39Using pandarallel
  19. 27:00Final optimization results
  20. 27:22Recommendations and conclusions
  21. 29:50Documentation and benchmarks
  22. 30:32Q&A
~/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.