Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Angelica Lo Duca

Rating No ratings yet

Great data presentations tell a story. Learn how to organize, visualize, and present data using Python, generative AI, and the cutting-edge Altair data visualization toolkit. Take the fast track to amazing data presentations! Data Storytelling with Altair and AI introduces a stack of useful tools and tried-and-tested methodologies that will rapidly increase your productivity, streamline the visualization process, and leave your audience inspired. In Data Storytelling with Altair and AI you’ll discover: • Using Python Altair for data visualization • Using Generative AI tools for data storytelling • The main concepts of data storytelling • Building data stories with the DIKW pyramid approach • Transforming raw data into a data story Data Storytelling with Altair and AI teaches you how to turn raw data into effective, insightful data stories. You’ll learn exactly what goes into an effective data story, then combine your Python data skills with the Altair library and AI tools to rapidly create amazing visualizations. Your bosses and decision-makers will love your new presentations—and you’ll love how quick Generative AI makes the whole process! About the reader For data analysts and data scientists experienced with Python. No previous knowledge of Altair or Generative AI required.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A practical guide to turning raw data into persuasive visual narratives by combining Python's declarative Altair library with generative AI tools like ChatGPT, DALL-E, and GitHub Copilot. Best suited for data analysts and scientists already comfortable with Python who want to communicate findings more effectively without learning a heavy new toolkit. 【Book Arc】 - **Opening (~0%–15%)**: Establishes what data storytelling is, why it matters for communication and decision-making, and introduces the DIKW pyramid (Data → Information → Knowledge → Wisdom) as the book's organizing framework. Also frames the core toolset: Altair plus generative AI. - **Early (~15%–35%)**: A hands-on first data story built with Altair and GitHub Copilot, walking through the DIKW stages on a tourism dataset—from raw chart to annotated, contextualized, call-to-action-driven narrative. - **Middle (~35%–50%)**: Reviews Altair fundamentals—Vega-Lite grammar, encodings, data types (nominal, ordinal, quantitative, temporal), marks, and interactivity—plus a population-growth case study that shows how to clean and progressively refine a messy chart. - **Late (~50%–80%)**: Deepens the DIKW approach: turning data into information with common chart types (bar, line, pie, maps), then into knowledge using ChatGPT for textual context and DALL-E for visual context, and finally into wisdom via AI-suggested next steps. - **Ending (~80%–100%)**: Covers ethics of generative AI in storytelling (bias, hallucinations, mitigations) and publishing options including Streamlit, Tableau, Power BI, and Comet. 【Key Takeaways】 - **Data storytelling is about shifting perspective to the audience** (Early): The book stresses that effective stories are calibrated to who's listening—general public, executives, or professionals—rather than to the analyst's own view of the data. - **The DIKW pyramid is the book's spine** (Early–Late): Data becomes information through meaning, information becomes knowledge through context, and knowledge becomes wisdom through action. Each stage maps to concrete Altair and AI techniques. - **Altair is declarative, not imperative** (Middle): Unlike Matplotlib or Seaborn, Altair lets you specify *what* you want rather than *how* to draw it, which speeds up iteration and pairs well with AI-assisted code generation. - **Generative AI accelerates the tedious parts** (Early–Late): GitHub Copilot handles boilerplate chart code; ChatGPT supplies commentary, annotations, and next-step suggestions; DALL-E generates supporting imagery—freeing effort for the storytelling itself. - **Context is what turns a chart into a story** (Late): A bare chart shows information; adding textual or visual context (annotations, commentary, images) is what makes it knowledge the audience can act on. - **Ethics are not optional with generative AI** (Ending): Bias and hallucinations are real risks in AI-assisted storytelling, and the book treats mitigation as part of the workflow, not an afterthought. - **Know when *not* to use this stack** (Early): The book explicitly warns against Altair and generative AI for big-data analytics or complex summary reports—these tools shine for narrative presentation, not heavy computation. - **Publishing is part of the story** (Ending): A finished data story needs a delivery channel; the book surveys Streamlit, Tableau, Power BI, and Comet as options depending on your environment. 【Reading Tips】 - **Skim Part 1's conceptual chapters if you already know storytelling basics**, but slow down on the DIKW walkthrough—it's the mental model everything else builds on. - **Deep-read the Altair chapters (Middle) with a notebook open**: the encodings, data types, and interactivity concepts are best absorbed by typing the examples yourself. - **Treat the case studies as templates**: the tourism and population examples show the full DIKW progression end-to-end, which is more valuable than any single chart recipe. - **Don't skip the ethics chapter** even if you're eager to publish—bias and hallucination handling will save you from embarrassing presentations. - **Expect code drift**: the author notes generative AI APIs evolve quickly, so verify current syntax against official docs while keeping the underlying principles. 【Coverage Limits】 The excerpts cover the book's structure, DIKW framework, Altair fundamentals, and AI tooling at a high level, but do not include full detail on every chart type, the complete ethics discussion, or the publishing chapters' specifics.
Page 14
7.5 Case study: From information to knowledge (part 1) 209 Tailoring the chart to the audience 210 ■ Using RAG to add a commentary 210 ■ Highlighting the per...
View in text
Excerpt 2
ivation was that the advertising campaign for dogs was poor. Finally, we added a call to action that invited the audience to increase the dog advertising cam...
View in text
Excerpt 3
script. Listing 2.16 Adding the call to action to the chart text_cta = f"""Since the number of tourists arriving in Portugal is constantly expanding, you can...
View in text
Excerpt 4
_line() to draw the chart. To plot the different countries, use the color channel. 3.3 Case study 79the coordinates of the last point in each line. For the x...
View in text
Excerpt 5
cipline, the record and the best time achieved by your team. In your case, the objective is to display the difference between your team’s time and the record...
View in text
Excerpt 6
rning knowledge into wisdom. 5.5.3 From knowledge to wisdom Wisdom involves adding a call to action to the story. In our case, we can simply say to the audie...
View in text
Excerpt 7
a practical case study. 6.4 Case study: Salmon aquaculture Imagine that you want to study safety in the salmon aquaculture industry in the United States. You...
View in text
Excerpt 8
specific context: retrieval augmented generation. Figure 7.12 The output produced by ChatGPT 7.4.2 Retrieval augmented generation So far, you have seen how t...
View in text
Tags
AI categories
DataArtificial IntelligencePython
Publish Year: 2024
Language: English
Pages: 386
File Format: PDF
File Size: 11.1 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…