~/talk

Idiomatic Pandas

Talkat Conf42 Python 2021 · on Thursday, 2021-05-27· [data-science, python]
slides:none on file

Uses Pandas 1.2.3 on a ~40,000-row, 83-column auto dataset and shows concrete wins: convert integer/float columns (cylinders from float to int), parse dates and turn low-cardinality strings into categorical to cut memory from 19 MB to 7 MB, create derived columns (automatic, speed, engine flags), build a reusable tweak function pipeline, prefer chained operations + assign to avoid SettingWithCopy and in-place myths, avoid apply for numeric work because vectorized ops are about 50x faster, and use groupby/agg/unstack for clear aggregations and plots.

AI-written summary · about

  1. 0:00Idiomatic Pandas
  2. 1:58Correct data types
  3. 14:23Chaining operations
  4. 19:13Avoid apply
  5. 22:41Group by and pivot tables
  6. 27:31Summary
~/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.