~/talk

Skinny Pandas Riding On A Rocket

Talkat PyData Global 2020 · 2020-11-11..11-15· [python, web-performance]
slides:none on file

25 million rows (4 GB CSV) inflate to ~10 GB in pandas memory; converting strings to categorical: 3.4 GB → 219 MB and downcasting numerics cuts RAM and speeds up ops. Installing bottleneck/numexpr triples some numeric ops. Using Dask with parquet partitions processes the dataset in chunks (100 files), resample to weekly completes in ~9 s with ~1.2 GB peak (rises to ~6 GB with 16 workers). SQLite stores a 4 GB single-file DB and answers indexed group-bys in ~2 s. Vaex uses mmap and returns group-bys in <1.5 s with low RAM.

AI-written summary · about

  1. 0:00Faster data science workflows
  2. 4:16Pandas limitations
  3. 9:05Optimizing pandas
  4. 13:35Speeding up pandas
  5. 16:02Dask for larger datasets
  6. 24:23SQLite as data tool
  7. 26:30Vagues for big data
  8. 31:24Choosing the right tool
  9. 32:26Q&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.