Skip to content
Pebellslearn by building

The course

Python for Data Analysis

Turn raw data into answers with NumPy, pandas and Matplotlib. You will load files and databases, fix gaps and messy text, group and join tables, and describe and plot what you find — all on one small bookshop sales table.

Ready to learn

Your path through the ideas

Inside the course

7 modules · 24 lessons
CLI tools & setup · Start here

Install your tools, choose your setup and verify a local run.

02Setting Up Your Data Toolkit3 lessons

Create an isolated environment for each project, write functions and lambdas you will pass to pandas, and learn how notebooks remember what you ran.

  1. 01pip and Virtual Environments12 min
  2. 02Functions and Lambdas for Data Work14 min
  3. 03Notebooks: JupyterLab, Colab and VS Code12 min
03NumPy Arrays4 lessons

Build arrays and read their shape and dtype, do element-wise arithmetic and aggregations, pick values by position, range and mask, then make repeatable random data and use the dot product.

  1. 01Arrays and the ndarray12 min
  2. 02Array Operations14 min
  3. 03Indexing and Slicing14 min
  4. 04Random Numbers and Linear Algebra Basics14 min
04pandas Series and DataFrames5 lessons

Meet the Series and DataFrame, select with loc and iloc, filter rows with conditions, summarise with groupby, and join tables with merge — all on one small bookshop sales table.

  1. 01Series and DataFrame14 min
  2. 02Selecting with loc and iloc14 min
  3. 03Filtering and Querying14 min
  4. 04Groupby and Aggregation15 min
  5. 05Merging and Joining15 min
05Loading Data3 lessons

Load files with the right options and check what arrived, handle the one question each format asks, and query databases straight into DataFrames.

  1. 01Reading CSV Files14 min
  2. 02Excel, JSON and Parquet14 min
  3. 03From a SQL Database into pandas14 min
06Cleaning Data4 lessons

Count missing values, decide between dropping and filling, fold messy text into clean categories, and give every column the type that matches its meaning.

  1. 01Finding Missing Values12 min
  2. 02Dropping, Imputing and Filling Gaps15 min
  3. 03Cleaning Text Columns14 min
  4. 04Fixing Types and Parsing Dates15 min
07Exploring and Plotting Data5 lessons

Choose between mean, median and mode, measure spread and flag outliers, read correlations, and draw clear line, bar, scatter, histogram and box plots with Matplotlib.

  1. 01Mean, Median and Mode12 min
  2. 02Spread and Outliers15 min
  3. 03Correlation and Covariance14 min
  4. 04First Plots with Matplotlib14 min
  5. 05Histograms, Box Plots and Saving Figures15 min
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.