Intermediate · module I2
Working with Data: NumPy, pandas, SQL and Visualisation
By the end: Clean and explore a real dataset with pandas and SQL, compute summaries with NumPy, and present findings with charts
- Covers
- Loading, cleaning, querying, exploring and charting real data with Python
- Contents
- 5 chapters, 21 topics
- Time
- About 4 hours
- Level
- Intermediate
- Your progress
- 0 / 21
This module builds on Python Programming for AI. We suggest looking at it first, but the choice is yours.
Chapter 1 NumPy
- 1.110 minBeing written
Introduction to NumPy
Arrays, and why they are faster than lists
Code: create arrays and compare speed
- 1.212 minBeing written
Array Shape, Indexing and Slicing
Dimensions, shapes, reshaping and selecting values
Code: work with a 2D table of marks
- 1.310 minBeing written
Array Operations and Broadcasting
Maths on whole arrays at once
Code: scale and normalise marks
- 1.410 minBeing written
Statistics with NumPy
Mean, median, standard deviation, minimum, maximum and percentiles
Code: summarise sensor readings
Chapter 2 pandas
- 2.110 minBeing written
Series and DataFrames
pandas' two main structures
Code: build a DataFrame from a dictionary
- 2.28 minBeing written
Reading Data from Files
read_csv, read_excel and read_json
Code: load a real dataset
- 2.310 minBeing written
Exploring a Dataset
head, info, describe, value_counts and data types
Code: first look at a dataset
- 2.412 minBeing written
Selecting and Filtering Data
loc, iloc and boolean filters
Code: answer five questions about the data
- 2.512 minBeing written
Sorting, Grouping and Aggregating
sort_values, groupby and pivot tables
Code: sales by city and month
- 2.610 minBeing written
Merging and Reshaping Data
merge, concat, melt and pivot
Code: combine two tables
Chapter 3 Data Cleaning
- 3.110 min Activity
- 3.212 minBeing written
Duplicates, Wrong Types and Outliers
Removing duplicates, fixing types and spotting extreme values
Code: clean a messy file
- 3.38 minBeing written
Preparing Text and Dates
String columns and date-time columns
Code: extract month and weekday
Chapter 4 Databases and SQL
- 4.18 minBeing written
Introduction to Databases
Tables, rows, keys and why data lives in databases
Interactive: design a school database
- 4.215 min Read
SQL Essentials
SELECT, WHERE, ORDER BY, GROUP BY and JOIN
Code: query a database from Python with SQLite
Chapter 5 Visualisation
- 5.112 minBeing written
Matplotlib Basics
Line, bar, scatter, histogram and pie charts, with labels
Code: chart a dataset five ways
- 5.212 minBeing written
Seaborn for Statistical Charts
Distribution plots, box plots, heatmaps and pair plots
Code: explore relationships
- 5.320 min Activity
Exploratory Data Analysis Workflow
Univariate, bivariate and multivariate analysis
Project: a complete EDA notebook
- 5.412 minBeing written
Data Storytelling with Charts
Choosing a message and designing charts that support it
Project: a one-page data story
- 5.515 minBeing written
Building a Data Dashboard
Several charts that answer one question
Project: an interactive dashboard
- 5.615 minBeing written
Module Review and Assessment
Coding exercises and a scored quiz
Graded data tasks