~/talk

The Pokémon trainer's guide to pandas and matplotlib

Talkat PyCon US 2024 · 2024-05-15..05-23· [data-visualization]
slides:none on file

Uses Pandas and matplotlib on a pokemon.csv with 898 rows to compute game stats (uses formula HP = 2HP + 110 and for others 2stat + 5), creates _final stat columns via join, adds a row-wise total (axis=1) and finds Mew as the first with total > 600 and the last Pokémon’s final speed = 165, converts three is_* flags to Boolean and primary type to categorical, plots colored bar and horizontal bar charts and violin plots for speed by type, saves the figure and the code runs end‑to‑end producing the described outputs.

AI-written summary · about

  1. 0:00Welcome
  2. 1:07Setting up the environment and repository
  3. 13:33Pandas DataFrames and Series
  4. 31:26Pokémon stats and broadcasting
  5. 1:06:22Data types and Boolean ops
  6. 1:36:53Coffee break
  7. 1:37:37Efficient data transformations
  8. 1:43:51Matplotlib basics
  9. 2:00:08Line plots with Pokémon data
  10. 2:07:16Bar plots for type distribution
  11. 2:33:35Plot colors and labels
  12. 2:51:14Violin plots for stats
  13. 3:00:32Final thoughts and resources
~/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.