Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Crafting Data Stories with Visuals and Key Messages | Communicating EDA Insights
Exploratory Data Analysis with Python

bookCrafting Data Stories with Visuals and Key Messages

Data storytelling turns your exploratory data analysis (EDA) into a compelling narrative that moves your audience from raw data to clear, actionable insights.

Instead of showing disconnected charts or statistics, you craft a story by:

  • Identifying the business context and goals;
  • Highlighting important trends and patterns in the data;
  • Emphasizing key messages that matter to your stakeholders.

Suppose you analyze retail sales data. You might:

  • Begin with overall sales trends to set the stage;
  • Explore category performance to reveal differences across products;
  • Show how various factors interact to drive results.

By combining visuals with concise explanations, you help your audience understand not just what the data shows, but why it matters. This approach ensures your EDA insights are memorable, persuasive, and ready to inform real business decisions.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np # Simulate retail sales data np.random.seed(42) dates = pd.date_range("2023-01-01", periods=12, freq="ME") categories = ["Electronics", "Clothing", "Home", "Grocery"] data = { "date": np.tile(dates, len(categories)), "category": np.repeat(categories, len(dates)), "sales": np.concatenate([ np.random.normal(22000, 2500, 12), # Electronics np.random.normal(15000, 1800, 12), # Clothing np.random.normal(18000, 2000, 12), # Home np.random.normal(25000, 3000, 12) # Grocery ]) } df = pd.DataFrame(data) # 1. Trend line: Overall monthly sales monthly_sales = df.groupby("date")["sales"].sum().reset_index() plt.figure(figsize=(8, 4)) sns.lineplot(data=monthly_sales, x="date", y="sales", marker="o") plt.title("Total Retail Sales Over Time") plt.xlabel("Month") plt.ylabel("Sales ($)") plt.tight_layout() plt.show() # 2. Barplot: Sales by category (total over the year) category_sales = df.groupby("category")["sales"].sum().reset_index() plt.figure(figsize=(6, 4)) sns.barplot(data=category_sales, x="category", y="sales", palette="muted") plt.title("Total Sales by Category (2023)") plt.xlabel("Category") plt.ylabel("Total Sales ($)") plt.tight_layout() plt.show() # 3. Heatmap: Monthly sales by category pivot = df.pivot(index="category", columns="date", values="sales") plt.figure(figsize=(10, 4)) sns.heatmap(pivot, annot=True, fmt=".0f", cmap="YlGnBu") plt.title("Monthly Sales Heatmap by Category") plt.xlabel("Month") plt.ylabel("Category") plt.tight_layout() plt.show()
copy

To make your data story resonate:

  • Annotate visuals with key messages and actionable insights.
  • Use clear, concise notes and titles to highlight what matters most.

For the retail sales example:

  • Trend line: total sales peaked in December — this suggests a strong holiday effect;
  • Barplot: the Grocery category outperformed others, pointing to consistent consumer demand;
  • Heatmap: seasonal spikes in Electronics and dips in Clothing can guide inventory or marketing decisions.

By adding these targeted annotations, you help stakeholders quickly understand the most important findings and ensure your EDA results drive informed action.

question mark

Which statements describe effective practices for crafting data stories with visuals and key messages?

Select the correct answer

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 5. Розділ 2

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain how to add annotations to these plots in Python?

What are some best practices for highlighting key insights in data visualizations?

Can you give more examples of actionable insights from this retail sales data?

Awesome!

Completion rate improved to 5.56

bookCrafting Data Stories with Visuals and Key Messages

Свайпніть щоб показати меню

Data storytelling turns your exploratory data analysis (EDA) into a compelling narrative that moves your audience from raw data to clear, actionable insights.

Instead of showing disconnected charts or statistics, you craft a story by:

  • Identifying the business context and goals;
  • Highlighting important trends and patterns in the data;
  • Emphasizing key messages that matter to your stakeholders.

Suppose you analyze retail sales data. You might:

  • Begin with overall sales trends to set the stage;
  • Explore category performance to reveal differences across products;
  • Show how various factors interact to drive results.

By combining visuals with concise explanations, you help your audience understand not just what the data shows, but why it matters. This approach ensures your EDA insights are memorable, persuasive, and ready to inform real business decisions.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np # Simulate retail sales data np.random.seed(42) dates = pd.date_range("2023-01-01", periods=12, freq="ME") categories = ["Electronics", "Clothing", "Home", "Grocery"] data = { "date": np.tile(dates, len(categories)), "category": np.repeat(categories, len(dates)), "sales": np.concatenate([ np.random.normal(22000, 2500, 12), # Electronics np.random.normal(15000, 1800, 12), # Clothing np.random.normal(18000, 2000, 12), # Home np.random.normal(25000, 3000, 12) # Grocery ]) } df = pd.DataFrame(data) # 1. Trend line: Overall monthly sales monthly_sales = df.groupby("date")["sales"].sum().reset_index() plt.figure(figsize=(8, 4)) sns.lineplot(data=monthly_sales, x="date", y="sales", marker="o") plt.title("Total Retail Sales Over Time") plt.xlabel("Month") plt.ylabel("Sales ($)") plt.tight_layout() plt.show() # 2. Barplot: Sales by category (total over the year) category_sales = df.groupby("category")["sales"].sum().reset_index() plt.figure(figsize=(6, 4)) sns.barplot(data=category_sales, x="category", y="sales", palette="muted") plt.title("Total Sales by Category (2023)") plt.xlabel("Category") plt.ylabel("Total Sales ($)") plt.tight_layout() plt.show() # 3. Heatmap: Monthly sales by category pivot = df.pivot(index="category", columns="date", values="sales") plt.figure(figsize=(10, 4)) sns.heatmap(pivot, annot=True, fmt=".0f", cmap="YlGnBu") plt.title("Monthly Sales Heatmap by Category") plt.xlabel("Month") plt.ylabel("Category") plt.tight_layout() plt.show()
copy

To make your data story resonate:

  • Annotate visuals with key messages and actionable insights.
  • Use clear, concise notes and titles to highlight what matters most.

For the retail sales example:

  • Trend line: total sales peaked in December — this suggests a strong holiday effect;
  • Barplot: the Grocery category outperformed others, pointing to consistent consumer demand;
  • Heatmap: seasonal spikes in Electronics and dips in Clothing can guide inventory or marketing decisions.

By adding these targeted annotations, you help stakeholders quickly understand the most important findings and ensure your EDA results drive informed action.

question mark

Which statements describe effective practices for crafting data stories with visuals and key messages?

Select the correct answer

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 5. Розділ 2
some-alt