~/talk

Beautiful Python Refactoring

Talkat PyCon US 2020 · 2020-04-15..04-23· [developer-experience]
slides:none on file

A concrete refactor pipeline takes scraped HTML rows using requests and lxml into a list comprehension and finally into a pandas DataFrame reducing code from 60+ lines to ~10 and then to three to five lines by using pandas.read_html. The code builds a working scraper and an analysis that shows C++ dominates submissions C++ 89% Python 6% Java 4%. Notes mention cuDF as a drop-in acceleration with reported ~100x speedups.

AI-written summary · about

  1. 0:00Introduction
  2. 1:14Why this talk
  3. 3:09How I started
  4. 5:50Imports
  5. 11:30Data Extraction
  6. 11:45If Statement
  7. 12:23Slicing
  8. 14:57Conditional Expressions
  9. 17:11Structural Changes
  10. 23:39Step 2 HTML Table
  11. 24:46Step 3 Code
  12. 26:46Performance
  13. 28:16Python Bites
~/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.