Histograms, Box Plots, Scatter Plots & Genre Trends
Dr. Karduni runs a code-along lab using a shared synthetic asking students to follow along in Pandas and Seaborn. They demonstrate building and styling histograms (bins, palette, figsize, mean/median lines with formatted labels), then box plots by genre with sorted category order and handling skew via log transforms or y-scale. They cover scatter plots (sampling, transparency, regression line, hue by genre, facet grids) and finish with multi-panel line charts of median streams by year and genre, including looping with zip and annotating peak points, while noting Altair examples will be shared later.
This is a course taught at Simon Fraser University, School of Interactive Arts and Technology.
For more information visit
https://datadialogue.vercel.app/
https://www.sfu.ca/siat.html
00:00 Class Setup and Goals
00:47 Assignment Cleaning Expectations
02:21 Dataset Access and No AI Today
03:25 Midterm Take Home Policy
06:24 Start Coding Load CSV
07:48 Histogram Basics and Outliers
10:44 Polish Plots Mean Median
15:14 Student Task Make Histograms
19:03 Review Student Charts Tips
23:41 Box Plots by Genre Ordering
28:15 Second Task Make Box Plot
28:35 Counting Unique Labels
29:24 Box Plots and Skew
30:13 Log Scaling Monthly Listeners
32:43 Scatter Plot Basics
34:18 Styling and Transparency
35:57 Color by Genre Limits
36:40 Facet Grids Small Multiples
39:56 Time Trends Line Charts
42:40 Multi Genre Subplots
48:06 Annotating Peak Values
54:45 Wrap Up and Assignment
#pandas #python #visualization #matplotlib #seaborn