Workshop · CGI x SMU DataJam

The Data Analyst's Dilemma: Scientist. Artist. Author.

A 2-hour workshop on building narratives that drive decisions, not just charts that fill dashboards.

Event
CGI x SMU DataJam, a data hackathon
When
2026
Format
Two-hour workshop in four acts. Build in Flourish or Python.
You leave with
A chart that tells one true story from the data, a two-sentence summary a manager could act on, and a note on what the data does not show
Presented by
Rose, then an AI systems architect at CGI and a data analytics student at NSCC
01 · The hook

Are we cooked?

Since the launch of ChatGPT, tech job postings have fallen off a cliff. The narrative writes itself: AI is replacing us.

We show you a chart. You'll draw a conclusion. And you'll be wrong. That's the point.

16012080400 1007550250 Jan 2022Jul 2022Jan 2023Jul 2023Jan 2024 Left scale: dev job postings, index Right scale: ChatGPT search interest, 0 to 100 ChatGPT launches, Nov 2022 Dev job postings ChatGPT interest
Dev job postings (left scale) ChatGPT search interest (right scale) The trap. As ChatGPT usage rises, dev job postings plummet. Obvious conclusion: "AI is killing jobs." But is it?

We are not!

Same jobs data. Different comparison. The Federal Interest Rate tells a different story: economics drove the freeze, not robots.

16012080400 8%6%4%2%0% Jan 2022Jul 2022Jan 2023Jul 2023Jan 2024 Left scale: dev job postings, index Right scale: US federal interest rate (%) ChatGPT launches, Nov 2022 Dev job postings Fed interest rate
Dev job postings (left scale) US federal interest rate (right scale) The truth. The real driver: as interest rates climbed from 0% to 5.3%, venture capital dried up and hiring froze. Timing ≠ causation.

Two scales, one frame. Each chart gives its two lines separate axes, both starting at zero, so the point where the lines cross is set by the axes, not by the data. Look at when each line starts to move instead. By November 2022, when ChatGPT launched, postings had already fallen from 125 to 82: more than half of the whole drop.

The full dataset behind both charts
MonthDev jobs (index)ChatGPT interestFed rate (%)AI jobs (index)
Jan 2022125.400.0845
Feb 2022128.100.0846
Mar 2022124.500.2048
Apr 2022119.200.3349
May 2022112.400.7750
Jun 2022105.801.2152
Jul 202298.301.6851
Aug 202292.102.3353
Sep 202288.402.5655
Oct 202284.203.0858
Nov 202281.5123.7865
Dec 202276.3454.1072
Jan 202372.1884.3385
Feb 202368.41004.5792
Mar 202364.2954.6598
Apr 202361.5824.83105
May 202358.9785.06112
Jun 202356.2655.08118
Jul 202354.8605.12125
Aug 202353.1625.33130
Sep 202352.5685.33135
Oct 202351.8725.33138
Nov 202350.4755.33142
Dec 202349.2705.33145
Jan 202448.5855.33150

The lesson

ChatGPT launched in November 2022, the exact same period rates spiked. Two things happened simultaneously, but only one caused the hiring freeze. The Scientist asks: "What's the mechanism?"

  1. Interest rates rise
  2. Venture capital dries up
  3. Startups freeze hiring
  4. Big Tech follows with layoffs
ChatGPT? Coincidence, not causation.
02 · The field

What is data analytics?

Data analytics is the process of examining, cleaning, transforming, and modeling data to discover useful information, draw conclusions, and support decision-making.

In practice, it sits at the crossroads of statistics, storytelling, and strategy. A data analyst does not just crunch numbers. They translate raw information into actions that shape organizations, governments, and public opinion.

$684BGlobal big data market by 2030
35%Job growth projected (2024 to 2034)
2.5QBytes of data created daily

The power of the field

Data analytics does not just describe the world. It reshapes it. Here are three ways it already has.

Election manipulation

Cambridge Analytica used Facebook data from 87 million users to build psychographic profiles and target voters with personalized political ads. Data did not just predict elections. It influenced them.

The attention economy

TikTok's algorithm tracks watch time, replays, and scroll speed to build a content profile in under 30 minutes. The result: users spend an average of 95 minutes per day on the app. Your attention is the product, and data is the extraction tool.

Prediction and behaviour algorithms

Retailers like Target famously predicted a teen's pregnancy before her family knew, based on purchasing patterns. Insurance companies adjust premiums using lifestyle data. Hiring tools screen resumes with models trained on historical bias. Data shapes outcomes before people even act.

With great data comes great responsibility.

So how do we use this power without becoming the villain?

Every chart you build carries an editorial choice. Every metric you highlight buries another. The difference between a data analyst and a data propagandist is intent, transparency, and ethics.

Ethical data analytics means showing what the data reveals and what it hides. It means labelling your axes honestly, disclosing your sample sizes, and resisting the urge to cherry-pick the narrative that gets the most applause.

That is what today's workshop is about.

03 · Three hats

Today you wear three hats.

We are not here to teach "how to make charts." We are here to teach how to function as a modern Data Professional.

The Scientist

Rigorous data hygiene. Checking bias. Questioning "obvious" correlations and digging deeper than the easy narrative.

The Artist

Color theory, Gestalt principles, visual hierarchy. Reducing cognitive load so the data speaks clearly.

The Author

Headlines, not labels. Crafting narratives from data that guide the audience to conclusions with integrity.

Workshop agenda

2 hours. 4 acts. Two streams: Flourish (drag-and-drop) and Python (code). Choose your path.

  1. 1The HookThe Trap: correlation vs. causation with real macro-economic data.0:00 to 0:15
  2. 2The ScientistDig deeper. Build scatter plots. Question every correlation. Find your own data.0:15 to 0:45
  3. 3The ArtistGood vs. bad visualization. Color theory. Chart selection. Design principles.0:45 to 1:15
  4. 4The AuthorThe Sandpit: tell three contradictory stories from the same dataset.1:15 to 2:00

Flourish · drag-and-drop

Build every chart in your browser at flourish.studio. The free tier is enough, and no coding is required.

Python · code

Copy-paste each snippet into a Jupyter notebook or Python file. The code reads the CSVs from a data folder next to it.

Python quick setup
# Install required packages
pip install pandas plotly jupyter statsmodels

# Start Jupyter Notebook
jupyter notebook

# Or run scripts directly
python pythonSolutions/act1_the_hook.py
python pythonSolutions/act2_the_scientist.py
python pythonSolutions/act3_the_artist.py
python pythonSolutions/act4_the_author.py

The four scripts are in Full solutions, at the end of the page.

Download the datasets

  • tech_hiring_macro_trends.csvActs 1 & 2 · The Hook & The Scientist. Monthly, January 2022 to January 2024: dev job postings, ChatGPT search interest, the US federal interest rate and AI job postings. Download tech_hiring_macro_trends.csv
  • global_development_2024.csvAct 3 · The Artist. 22 countries: GDP per capita, happiness score, internet use, CO2 emissions per capita and unemployment rate. Download global_development_2024.csv
  • workforce_dynamics.csvAct 4 · The Author (Sandpit). 100 employees across Engineering, Sales, Marketing, HR and Product. Download workforce_dynamics.csv

Choose Flourish or Python. Follow along, build, and question everything.

04 · Act 1 · 0:00 to 0:15

The Hook: The Trap

Recreate the two charts from the opening, then swap one line and watch the narrative flip.

Flourish · drag-and-drop

Recreate "The Trap" in Flourish

  1. Open FlourishGo to flourish.studio and create a new "Line chart" visualization.
  2. Upload dataImport tech_hiring_macro_trends.csv. Set Date as X-axis.
  3. Configure seriesAdd Dev_Jobs as the first line (red, solid). Add ChatGPT_Traffic as a second line (green, dashed). Use a secondary Y-axis for ChatGPT.
  4. Title it like a headlineUse "Did AI Kill the Entry-Level Job?", not "Line Chart of Data."
  5. Now swap itRemove ChatGPT_Traffic. Add Fed_Interest instead (blue, dotted). Watch the narrative flip entirely.

Python · code

Recreate "The Trap" in Python

Copy-paste this into a Jupyter notebook or Python file. Requires pandas, plotly.

Reads data/tech_hiring_macro_trends.csv
import pandas as pd
import plotly.graph_objects as go
from plotly.subplots import make_subplots

df = pd.read_csv("data/tech_hiring_macro_trends.csv", parse_dates=["Date"])

# THE TRAP: Dev Jobs vs ChatGPT
fig = make_subplots(specs=[[{"secondary_y": True}]])
fig.add_trace(go.Scatter(x=df["Date"], y=df["Dev_Jobs"],
    name="Dev Job Postings", line=dict(color="#ef4444", width=3)), secondary_y=False)
fig.add_trace(go.Scatter(x=df["Date"], y=df["ChatGPT_Traffic"],
    name="ChatGPT Interest", line=dict(color="#22c55e", width=3, dash="dash")), secondary_y=True)
fig.update_layout(title="The Trap: Did AI Kill the Entry-Level Job?",
    template="plotly_dark", paper_bgcolor="#0f172a", plot_bgcolor="#0f172a",
    hovermode="x unified", legend=dict(orientation="h", y=-0.15))
fig.show()
Runs after the cell above
# THE TRUTH: Dev Jobs vs Interest Rate
fig2 = make_subplots(specs=[[{"secondary_y": True}]])
fig2.add_trace(go.Scatter(x=df["Date"], y=df["Dev_Jobs"],
    name="Dev Job Postings", line=dict(color="#ef4444", width=3)), secondary_y=False)
fig2.add_trace(go.Scatter(x=df["Date"], y=df["Fed_Interest"],
    name="Fed Interest Rate (%)", line=dict(color="#3b82f6", width=3, dash="dot")), secondary_y=True)
fig2.update_layout(title="The Truth: Interest Rates Drove the Hiring Freeze",
    template="plotly_dark", paper_bgcolor="#0f172a", plot_bgcolor="#0f172a",
    hovermode="x unified", legend=dict(orientation="h", y=-0.15))
fig2.show()
05 · Act 2 · 0:15 to 0:45

The Scientist: Correlation ≠ Causation

Data-driven narratives are not black and white. Good Data Analysts provide nuance, not clickbait.

Dataset preview: tech_hiring_macro_trends.csv

DateDev_JobsChatGPT_TrafficFed_InterestAI_Jobs
2022-01125.400.0845
2022-1181.5123.7865
2023-0268.41004.5792
2024-0148.5855.33150

Key observation: Dev jobs dropped 61% while AI jobs grew 233%. ChatGPT traffic and interest rates both correlate, but which one has a causal mechanism?

Flourish · drag-and-drop

Build a scatter plot in Flourish

  1. New vizIn Flourish, choose "Scatter plot".
  2. X-axisSet to ChatGPT_Traffic. Y-axis: Dev_Jobs. Add a trendline.
  3. ObserveYou'll see a strong negative correlation. Title it: "ChatGPT vs Dev Jobs: Looks Scary, Right?"

Now build the counter-narrative

  1. Duplicate the vizChange X-axis to Fed_Interest. Title: "The Real Driver: Interest Rates."
  2. CompareBoth correlate strongly, but only one has a causal economic mechanism.

Bonus: AI jobs vs dev jobs

  1. Create a third scatterX = AI_Jobs, Y = Dev_Jobs. This shows the workforce is shifting, not shrinking.
Activity time

Basic stream. Visualize the dataset using any Flourish chart type of your choosing. Embed your narrative within the title and description.

Advanced stream. Find additional data using AI or Google (e.g., VC funding data, NASDAQ index, layoff trackers) from a reputable source. Add it to alter your narrative and show a more complete picture.

Python · code

Scatter plots with trendlines

Reads data/tech_hiring_macro_trends.csv
import pandas as pd
import plotly.express as px

df = pd.read_csv("data/tech_hiring_macro_trends.csv", parse_dates=["Date"])

# Scatter 1: ChatGPT vs Dev Jobs (the misleading correlation)
df_chat = df[df["ChatGPT_Traffic"] > 0]
fig1 = px.scatter(df_chat, x="ChatGPT_Traffic", y="Dev_Jobs", trendline="ols",
    title="Dev Jobs vs ChatGPT Traffic: Looks Scary, Right?",
    labels={"ChatGPT_Traffic":"ChatGPT Search Interest", "Dev_Jobs":"Dev Jobs (Index)"},
    color_discrete_sequence=["#ef4444"], template="plotly_dark")
fig1.update_layout(paper_bgcolor="#0f172a", plot_bgcolor="#0f172a")
fig1.show()

# Scatter 2: Interest Rate vs Dev Jobs (the real driver)
fig2 = px.scatter(df, x="Fed_Interest", y="Dev_Jobs", trendline="ols",
    title="Dev Jobs vs Federal Interest Rate: The Real Driver",
    labels={"Fed_Interest":"Fed Rate (%)", "Dev_Jobs":"Dev Jobs (Index)"},
    color_discrete_sequence=["#3b82f6"], template="plotly_dark")
fig2.update_layout(paper_bgcolor="#0f172a", plot_bgcolor="#0f172a")
fig2.show()

Correlation heatmap

Runs after the cell above
import plotly.graph_objects as go

corr = df[["Dev_Jobs","ChatGPT_Traffic","Fed_Interest","AI_Jobs"]].corr()
fig = go.Figure(data=go.Heatmap(z=corr.values, x=corr.columns, y=corr.columns,
    colorscale="RdBu", zmid=0, text=corr.values.round(2), texttemplate="%{text}"))
fig.update_layout(title="Correlation Matrix: Everything Correlates, But Why?",
    template="plotly_dark", paper_bgcolor="#0f172a", plot_bgcolor="#0f172a",
    width=600, height=500)
fig.show()
Activity time

Basic stream. Run the scatter plots above. Which correlation looks "stronger"? Does strength of correlation prove causation?

Advanced stream. Use pandas_datareader or find a CSV of VC funding data to add a third variable. Does it strengthen the interest rate narrative?

Scientist's checklist

Key concept · Spurious correlation: Ice cream sales correlate with drowning deaths. Neither causes the other: summer (heat) drives both. Always ask: is there a hidden third variable?

06 · Act 3 · 0:45 to 1:15

The Artist: Visual Hierarchy

The right chart, the right color, the right focus. Design choices are editorial choices.

Bad visualization
  • Rainbow pie chart with 22 slices
  • Title: "GDP Data" (meaningless)
  • 3D effects and drop shadows
  • Gridlines everywhere
  • Legend with 22 items off to the side
  • No hierarchy: everything screams equally
Good visualization
  • Horizontal bar chart, sorted by value
  • Title: "Switzerland Leads in GDP Per Capita"
  • One accent color for the key insight
  • Minimal gridlines, no chart junk
  • Direct labels, no separate legend needed
  • The eye goes to the story immediately

Switzerland Leads in GDP Per Capita

GDP per capita, US dollars · 22 countries

Switzerland Norway United States Iceland Denmark Netherlands Sweden Canada Israel Finland New Zealand United Kingdom Japan South Korea Costa Rica China Mexico Brazil India Nigeria Kenya Afghanistan $93,400 $89,100 $76,400 $68,700 $67,800 $57,700 $55,900 $54,900 $54,700 $53,600 $48,400 $46,100 $34,000 $32,300 $13,200 $12,700 $11,000 $8,900 $2,400 $2,200 $2,100 $360
The good version, drawn from global_development_2024.csv. Switzerland leads at $93,400, ahead of Norway at $89,100; Afghanistan is last at $360.

The Artist's 5 principles

  1. Chart type = data typeBar for ranking. Scatter for relationships. Map for geography. Line for time series. Never use pie charts for more than 3 slices.
  2. Color is dataUse color to encode meaning (red=bad, green=good), not decoration. One accent color to spotlight the story.
  3. Title is a headline"Nigeria's 33% Unemployment Dwarfs Global Peers" > "Unemployment Rate by Country."
  4. Reduce clutterRemove gridlines, borders, 3D effects, and legends if direct labels work better.
  5. Size encodes dataBubble size adds a third dimension without adding complexity. Use it for population, GDP, or any magnitude.

Flourish · drag-and-drop

Bubble chart: happiness vs GDP

  1. New vizChoose "Scatter" in Flourish. Upload global_development_2024.csv.
  2. X-axisGDP_Per_Capita_USD. Y-axis: Happiness_Score_0_10. Size: Internet_Usage_Pct. Color: Region.
  3. Title"Does Money Buy Happiness? (Bubble Size = Internet Penetration)"
  4. Artist touchUse a muted palette for most regions, with one bright color for the focus region.

Bar chart with accent color

  1. New vizChoose "Bar chart" (horizontal). Y = Country, X = Unemployment_Rate. Sort descending.
  2. Spotlight techniqueMake all bars grey (#334155). Then manually color countries above 10% in red (#e31937). This draws the eye to the crisis.
  3. Title"Unemployment Crisis: Nigeria, Afghanistan & Costa Rica Above 10%"

Map: CO2 emissions

  1. New vizChoose "Projection map". Region: Country. Color: CO2_Emissions_Per_Capita.
  2. Color scaleUse Yellow → Orange → Red (sequential) for intensity.
  3. Title"CO2 Per Capita: North America Leads (Not a Good Thing)"
Activity: create a beautiful visualization

Basic stream. Choose any chart type in Flourish. Use global_development_2024.csv. Apply at least 3 of the 5 Artist's Principles above. Make it beautiful and meaningful.

Python · code

Bubble chart: happiness vs GDP

Reads data/global_development_2024.csv
import pandas as pd
import plotly.express as px

df = pd.read_csv("data/global_development_2024.csv")

fig = px.scatter(df, x="GDP_Per_Capita_USD", y="Happiness_Score_0_10",
    size="Internet_Usage_Pct", color="Region", hover_name="Country",
    title="Does Money Buy Happiness? (Bubble = Internet Penetration)",
    labels={"GDP_Per_Capita_USD":"GDP Per Capita (USD)",
            "Happiness_Score_0_10":"Happiness (0-10)"},
    size_max=40,
    color_discrete_map={"Europe":"#3b82f6","Asia":"#f97316",
        "North America":"#e31937","South America":"#22c55e",
        "Africa":"#eab308","Oceania":"#a855f7"},
    template="plotly_dark")
fig.update_layout(paper_bgcolor="#0f172a", plot_bgcolor="#0f172a")
fig.show()

Bar chart with spotlight technique

Runs after the cell above
import plotly.graph_objects as go

df_u = df.sort_values("Unemployment_Rate", ascending=False)
colors = ["#e31937" if r > 10 else "#334155" for r in df_u["Unemployment_Rate"]]

fig = go.Figure(go.Bar(x=df_u["Country"], y=df_u["Unemployment_Rate"],
    marker_color=colors, text=df_u["Unemployment_Rate"].round(1),
    textposition="outside"))
fig.update_layout(
    title="Unemployment Crisis: Nigeria, Afghanistan & Costa Rica Above 10%",
    template="plotly_dark", paper_bgcolor="#0f172a", plot_bgcolor="#0f172a",
    yaxis_title="Unemployment Rate (%)",
    xaxis=dict(tickangle=-45, tickfont=dict(size=10)))
fig.show()

Choropleth map

Runs after the first cell
fig = px.choropleth(df, locations="Country", locationmode="country names",
    color="CO2_Emissions_Per_Capita", hover_name="Country",
    color_continuous_scale="YlOrRd",
    title="CO2 Per Capita: North America Leads (Not a Good Thing)",
    labels={"CO2_Emissions_Per_Capita":"CO2 (tonnes)"},
    template="plotly_dark")
fig.update_layout(paper_bgcolor="#0f172a",
    geo=dict(bgcolor="#0f172a", lakecolor="#0f172a"))
fig.show()
Activity: create a beautiful visualization

Advanced stream. Using plotly, create a visualization from global_development_2024.csv that applies at least 3 of the 5 Artist's Principles. Add annotations, custom colors, and a narrative title.

Chart selection guide

  • RankingHorizontal bar chart
  • Time seriesLine chart
  • RelationshipScatter / bubble
  • GeographyChoropleth map
  • Part-to-wholeStacked bar (not pie!)
  • DistributionHistogram / box plot
07 · Act 4 · 1:15 to 2:00

The Author: The Sandpit

Same dataset. Three contradictory, yet truthful, stories. The Author chooses which truth to amplify.

Story 1 · The RTO Advocate

"Office Workers Get Promoted. Remote Workers Don't. Period."

Method: Group by Work_Setup, calculate promotion rate. On-Site shows ~67% vs Remote 0%. Hybrid sits at ~38%.

What's hidden: On-site workers log 50+ hours with high visibility. Tenure, department, hours worked, and visibility bias are all ignored.

Story 2 · The Union Rep

"High Performers Working 50+ Hours Are Burning Out"

Method: Scatter plot Hours vs Mental Health, colored by Productivity. The "burnout zone" (50+ hrs, MH < 5) contains 11 employees, all scoring 85+ in productivity.

What's hidden: Many 40-hour workers also report great mental health. Selection bias in who "burns out."

Story 3 · The DEI Auditor

"Gender Pay Gaps Persist Across Departments"

Method: Grouped bar chart of avg Salary by Department × Gender. Sales shows Male $121K vs Female $94K, a $27K gap. Engineering: Male $141K vs Female $123K.

What's hidden: Tenure and seniority differences, sample sizes vary widely (e.g., Non-Binary n=1 in Marketing), and on-site males dominate senior roles.

None of these stories are lies. But none tell the whole truth.The Author's power

A great Data Professional presents the nuance, not just the narrative that serves their agenda. Your job is to be honest about what the data shows and what it doesn't.

Flourish · drag-and-drop

Story 1: RTO Advocate (bar chart)

  1. Upload workforce_dynamics.csv to Flourish.
  2. MethodYou'll need to pre-calculate or use Flourish's "Data" tab to count promotions by Work_Setup. Create a simple bar chart.
  3. ColorOn-Site = Red (hot/important), Hybrid = Orange, Remote = Grey (de-emphasized).
  4. Title"On-Site Workers Are Promoted at Higher Rates"

Story 2: Union Rep (scatter)

  1. Chart typeScatter. X = Weekly_Hours, Y = Mental_Health_Index. Color by Productivity_Score.
  2. FocusDraw attention to the bottom-right quadrant: high hours, low mental health. Use annotations if Flourish supports them.
  3. Title"High Performers Working 50+ Hours Are Burning Out"

Story 3: DEI Auditor (grouped bar)

  1. Chart typeGrouped bar chart. X = Department, Y = Salary (average). Color = Gender.
  2. Color mapMale = Blue, Female = Red, Non-Binary = Purple.
  3. Title"Gender Pay Gaps Persist in Non-Tech Roles"
Final challenge

Basic stream. Pick one of the three personas above. Build the visualization in Flourish that tells their story. Then write a 2-sentence description that a manager would read and act on. Bonus: Can you add a disclaimer about what the data does not show?

Python · code

Story 1: RTO Advocate

Reads data/workforce_dynamics.csv
import pandas as pd
import plotly.graph_objects as go

df = pd.read_csv("data/workforce_dynamics.csv")

promo = df.groupby("Work_Setup").agg(
    total=("Promoted_Last_Year","count"),
    promoted=("Promoted_Last_Year", lambda x: (x=="Yes").sum())
).reset_index()
promo["Rate"] = (promo["promoted"]/promo["total"]*100).round(1)

# Order for narrative impact
order = ["On-Site", "Hybrid", "Remote"]
promo["Work_Setup"] = pd.Categorical(promo["Work_Setup"], categories=order, ordered=True)
promo = promo.sort_values("Work_Setup")

fig = go.Figure(go.Bar(x=promo["Work_Setup"], y=promo["Rate"],
    marker_color=["#e31937","#f97316","#334155"],
    text=[f"{v}%" for v in promo["Rate"]], textposition="outside"))
fig.update_layout(title="RTO Advocate: On-Site Workers Get Promoted More",
    template="plotly_dark", paper_bgcolor="#0f172a", plot_bgcolor="#0f172a",
    yaxis_title="Promotion Rate (%)", yaxis=dict(range=[0,80]))
fig.show()

Story 2: Union Rep

Runs after the cell above
import plotly.express as px

fig = px.scatter(df, x="Weekly_Hours", y="Mental_Health_Index",
    color="Productivity_Score", size="Salary", hover_name="Emp_ID",
    title="Union Rep: High Performers Are Burning Out",
    color_continuous_scale="RdYlGn", template="plotly_dark")
fig.update_layout(paper_bgcolor="#0f172a", plot_bgcolor="#0f172a")
fig.add_shape(type="rect", x0=50, x1=66, y0=0, y1=5,
    fillcolor="rgba(239,68,68,0.1)", line=dict(color="#ef4444",dash="dash"))
fig.add_annotation(x=58, y=2.5, text="BURNOUT ZONE",
    font=dict(color="#ef4444",size=12), showarrow=False)
fig.show()

Story 3: DEI Auditor

Runs after the two cells above
pay = df.groupby(["Department","Gender"])["Salary"].mean().reset_index()

fig = px.bar(pay, x="Department", y="Salary", color="Gender", barmode="group",
    title="DEI Auditor: Gender Pay Gaps Persist Across Departments",
    color_discrete_map={"Male":"#3b82f6","Female":"#e31937","Non-Binary":"#a855f7"},
    template="plotly_dark")
fig.update_layout(paper_bgcolor="#0f172a", plot_bgcolor="#0f172a",
    legend=dict(orientation="h", y=-0.15))
fig.show()
Final challenge

Advanced stream. Pick one persona. Build the chart in Python. Then modify it to tell the opposite story from the same data. Add annotations explaining what the original chart hid. This is the Author's superpower: showing both sides.

Author's checklist

workforce_dynamics.csv: 100 employees across Engineering, Sales, Marketing, HR, Product. Fields include Work_Setup, Salary, Weekly_Hours, Productivity_Score, Mental_Health_Index, Gender, Promoted_Last_Year, Tenure_Years.

08 · Resources

Resources & Next Steps

Everything you need to continue your data storytelling journey.

Tools
Further reading

Full solutions

One Python script per act, with a few extra charts that are not on this page. Keep the folder layout from the setup: these scripts in a pythonSolutions folder, the three datasets in a data folder beside it.

  • act1_the_hook.pyAct 1 · The trap, the truth, and the complete picture with all four series. Download act1_the_hook.py
  • act2_the_scientist.pyAct 2 · Three scatter plots with trendlines, including AI jobs vs dev jobs, and the correlation matrix. Download act2_the_scientist.py
  • act3_the_artist.pyAct 3 · The bad pie chart and the good bar chart, then the bubble chart, the map and the spotlight bars. Download act3_the_artist.py
  • act4_the_author.pyAct 4 · The three stories, with a summary of what each one leaves out. Download act4_the_author.py

Workshop recap

  • The ScientistQuestion every correlation. Look for mechanisms, confounders, and hidden variables. Correlation ≠ causation.
  • The ArtistChoose chart types wisely. Use color with purpose. Write headlines, not labels. Reduce clutter ruthlessly.
  • The AuthorData tells many stories. Choose yours ethically. Show what the data reveals and what it hides.

Question everything.

Given at the CGI x SMU DataJam, 2026. Questions, or a dataset that tells two stories: [email protected]

Keep going

More talks and thoughts

All talks and thoughts

Talks & Thoughts

Get the next one.

New talks and new thoughts from Rose, by email, when there is something worth sending. No schedule to keep up with.

Emails go through Buttondown and every one has an unsubscribe link. Prefer a reader? Follow the feed.