TidyTuesday python: analyzing hockey goals

Опубликовано: 25 Июль 2026
на канале: Michael Chow
1,595
36

Analyzing hockey goals in python for Tidy Tuesday. I use pandas and siuba for wrangling (2:40), try altair for viz (26:00), and wrap-up with a screenlit dashboard (51:25). There's a good chunk of date and string processing. Full timeline in description.

Timeline:

2:40 - create the jupyter notebook
9:00 - investigate ranking, discuss dense rank
22:00 - count() verb with siuba, working with datetimes
26:00 - start plotting with altair
39:30 - how to round a date to the beginning of each month (dt.floor won't work)
43:50 - splitting strings in pandas w/ Series.str.split
51:25 - converting to a streamlit dashboard

Resources:

notebook code: https://github.com/machow/tidytuesday...
streamlit code: https://github.com/machow/tidytuesday...
all links: https://github.com/machow/tidytuesday...