Part I: Welcome to Data Science

From Curiosity to Your First Analysis

You picked up this book because something about data caught your attention. Maybe you saw a striking visualization that changed how you understood a news story. Maybe your boss asked you to "dig into the numbers" and you realized you did not know where to start. Maybe you heard that data science is a hot career and you want to find out what the hype is actually about. Whatever brought you here, you are in the right place, and you do not need to know a single thing about programming or statistics to begin.

Part I is your on-ramp. Over the next six chapters, we will go from "What even is data science?" to you, personally, writing code that loads a real dataset and discovers something genuine in it. That is not an exaggeration or a marketing promise. By the end of Chapter 6, you will have written Python code that reads thousands of rows of World Health Organization vaccination data, computes summary statistics, spots missing values, and answers questions you formulated yourself. You will have done real data science, with your own hands, on your own computer.

But we are not going to rush there. The journey matters as much as the destination.

What You Will Find in These Chapters

Chapter 1: What Is Data Science? starts with the big picture. Data science sits at the intersection of several older fields — statistics, computer science, and domain expertise — and it can be hard to pin down where one ends and the other begins. We will cut through the confusion by focusing on the data science lifecycle: the repeating pattern of asking questions, gathering data, cleaning it, analyzing it, modeling it, and communicating what you found. You will meet four people whose stories will thread through the entire book — Elena, a public health analyst investigating vaccination disparities; Marcus, a small business owner trying to understand his sales patterns; Priya, a sports journalist exploring how three-point shooting has transformed basketball; and Jordan, a student investigating whether grading at their university might be biased. Their questions are different, but the process they follow is the same. That process is data science.

Chapter 2: Setting Up Your Toolkit gets your hands dirty for the first time. You will install Python and Jupyter, the two tools that will be your constant companions for the rest of this book. Jupyter notebooks are remarkable — they let you write code, run it, see the results, and write explanatory text all in one document, like a laboratory notebook for data exploration. We will walk through every step of installation, with troubleshooting guides for Windows, macOS, and Linux, because nothing kills momentum like getting stuck on setup. By the end of this chapter, you will have a working Jupyter notebook with your name on it.

Chapters 3 and 4: Python Fundamentals teach you the programming basics you need — and nothing more. Chapter 3 covers variables, data types, and expressions: storing a number, performing a calculation, working with text. Chapter 4 introduces control flow and functions: making decisions with if/else, repeating actions with loops, and packaging reusable logic into functions. These are not comprehensive Python courses. They are laser-focused on the Python you need for data science, taught through data-relevant examples. You will calculate vaccination rates, not abstract math problems. You will loop through country names, not meaningless lists of numbers.

If you already know Python, you might be tempted to skip these chapters. I would suggest skimming them instead. The data science mindset we build here — thinking about data types as properties of measurements, thinking about functions as reusable analytical tools — will serve you even if the syntax is review.

Chapter 5: Working with Data Structures is where Python starts to feel like a data tool. You will learn to organize information in lists, dictionaries, sets, and tuples — the building blocks that mirror how real-world data is structured. A patient record is a dictionary. A collection of countries is a list. A mapping from region names to country lists is a dictionary of lists. You will also learn to read files from disk, which is, frankly, how most data science begins: someone hands you a file and says "what is in here?"

Chapter 6: Your First Data Analysis is the payoff chapter, and it is one of my favorites in the entire book. Everything from Chapters 1 through 5 converges as you download a real WHO vaccination dataset and explore it using nothing but the Python you have learned so far. You will count rows. You will find unique values. You will spot missing data. You will compute averages. And you will start to feel something that experienced data scientists know well: the thrill of asking data a question and watching an answer emerge.

Here is the secret, though: Chapter 6 is also designed to frustrate you a little. Doing data analysis with pure Python — loops and dictionaries and manual counting — works, but it is tedious. The code is long. Simple operations take many lines. That frustration is intentional, because it sets up Part II perfectly. When you meet pandas in Chapter 7, you will understand exactly why it exists and what problem it solves. You will not just learn pandas — you will be grateful for pandas.

The Progressive Project Begins

Starting in Chapter 1 and continuing through every chapter of this book, you will build a single, growing project: an investigation of global COVID vaccination rates using data from the World Health Organization. In Part I, this project takes its first steps. You will define your research questions, set up your project notebook, store metadata in variables, write helper functions, organize country information in data structures, and perform your first exploration of the raw data.

Each chapter adds a concrete milestone to this project. By the time you finish the book, you will have a complete, portfolio-worthy data science investigation — but it starts here, with curiosity and a few good questions.

A Note on Pace and Patience

If you are brand new to programming, Part I might feel like a lot. Variables, loops, functions, data structures, file I/O — these are real concepts, and they take time to internalize. Please do not rush. Type out every code example rather than copying and pasting. Make mistakes. Read error messages. Try changing things and see what happens. Programming is learned by doing, not by reading, and every error you encounter is a lesson in disguise.

If you are an experienced programmer learning data science, Part I might feel slow. That is by design. The concepts here are foundational, and the data science perspective on them — thinking about types as properties of measurements, about functions as analytical tools, about data structures as mirrors of real-world organization — may be new even if the syntax is not.

Either way, give yourself permission to move at whatever pace works for you. There is no clock ticking. The data will still be there tomorrow.

What Comes After

Part I gives you the foundation. Part II will give you power. Once you have the basics of Python and the experience of your first analysis, you will be ready for pandas — the library that transforms Python from a general-purpose language into a data analysis powerhouse. The frustrations of Chapter 6 will dissolve as you learn to do in one line what used to take fifteen.

But first, let us begin at the beginning. Turn to Chapter 1, and let us find out what data science actually is.

Chapters in This Part