Getting started with data

What data science is, how tables, types and variables work, and how to read CSV and JSON data with plain Python.

About 5 hours of study

Learning objectives

Lessons

  1. 1

    What data science is Intermediate

    The data science process from a question to an answer: asking a precise question, collecting and cleaning data, exploring it, modelling it and communicating what was found, with a first analysis in plain Python.

  2. 2

    Data types and tables Intermediate

    The kinds of variables a dataset holds (numeric, categorical, ordinal, yes/no, text and dates), how a table is organised in rows and columns, and how to inspect a table's shape, types and missing values.

  3. 3

    Reading CSV and JSON data Intermediate

    Loading the two most common data formats with the standard library: CSV with csv.reader and csv.DictReader, including quoted fields, JSON with json.loads and json.dumps, and converting text values to the right types.

Module practice

Module quiz

1. In a tidy table, what is one row?
2. Which variable is categorical?
3. Which Python module reads CSV files correctly, including quoted commas?
4. What makes a question answerable with data?
5. Shirt sizes S, M, L and XL are which kind of variable?
6. Why should a ZIP code be stored as text, not a number?

Cleaning and shaping data ›