Simple Data Analysis

Find, clean, explore, chart and explain real data with Python, in notebooks that run in the page. NumPy, pandas, matplotlib, seaborn, statistics, and how to say how sure you are.

Each lesson lists the sources it follows, mostly the official Python, Jupyter, NumPy and pandas documentation. See all sources.

Last updated

DThe capstone: A full analysis of real Philippine open data: a published report, a small dashboard and a clean dataset others can reuse.

Stage 1: Notebooks and your toolkit

Run a notebook, know the data tools, and set up a project someone else can rerun.

  1. 1.1What data analysis is Open
  2. 1.2Your first notebook Open
  3. 1.3Notebook habits Open
  4. 1.4The toolkit on your computer Open
  5. 1.5Project folders and files Open
  6. 1.PProject: the Tindahan notebook Open

Stage 2: NumPy

Think in arrays: shapes, vectorised maths, broadcasting and random numbers.

  1. 2.1Why arrays Open
  2. 2.2Making arrays Open
  3. 2.3Types and memory Open
  4. 2.4Shape, reshaping and axes Open
  5. 2.5Indexing, slicing and masks Open
  6. 2.6Views and copies Open
  7. 2.7Vectorised maths and ufuncs Open
  8. 2.8Aggregations Open
  9. 2.9Broadcasting Open
  10. 2.10Random numbers and simulation Open
  11. 2.11Linear algebra for data Open
  12. 2.12Saving arrays, and images as arrays Open
  13. 2.PProject: a sales simulator Open

Stage 3: pandas basics

Load a table and answer simple questions about it.

  1. 3.1Series Open
  2. 3.2DataFrames Open
  3. 3.3Reading and writing files Open
  4. 3.4Choosing columns and rows Open
  5. 3.5Sorting and ranking Open
  6. 3.6New columns and changing values Open
  7. 3.7Types in pandas Open
  8. 3.8Missing values, first look Open
  9. 3.PProject: clean one Tindahan file Open

Stage 4: pandas in depth

Group, join, reshape and work with dates, text and time series.

  1. 4.1Grouping: split, apply, combine Open
  2. 4.2Transform and filter by group Open
  3. 4.3Joining tables Open
  4. 4.4Reshaping: long and wide Open
  5. 4.5Indexes and multi-indexes Open
  6. 4.6Dates and times Open
  7. 4.7Time series Open
  8. 4.8Text columns Open
  9. 4.9Categories Open
  10. 4.10Method chaining and apply Open
  11. 4.11Bigger data: Polars and DuckDB Open
  12. 4.PProject: the Tindahan report tables Open

Stage 5: Getting and cleaning data

Get data from where it lives and make it trustworthy.

  1. 5.1Where data comes from Open
  2. 5.2Spreadsheets Open
  3. 5.3Databases and SQL Open
  4. 5.4Web APIs and JSON Open
  5. 5.5Tidy data Open
  6. 5.6Missing data in depth Open
  7. 5.7Duplicates, errors and outliers Open
  8. 5.8Units, codes and consistency Open
  9. 5.9Checking data automatically Open
  10. 5.10A cleaning pipeline Open
  11. 5.PProject: clean all of Tindahan Open

Stage 6: Charts with matplotlib

Draw any chart, control every part of it, and choose the right one.

  1. 6.1Why we draw data Open
  2. 6.2Figures and axes Open
  3. 6.3The core charts Open
  4. 6.4Choosing the right chart Open
  5. 6.5Several charts in one figure Open
  6. 6.6Making charts clear Open
  7. 6.7Colour Open
  8. 6.8Scales and axes Open
  9. 6.9Time series and maps Open
  10. 6.10Saving and exporting Open
  11. 6.PProject: the Tindahan chart pack Open

Stage 7: seaborn and interactive charts

Draw statistical charts from tidy data, and charts readers can explore.

  1. 7.1seaborn and tidy data Open
  2. 7.2Distributions Open
  3. 7.3Comparing groups Open
  4. 7.4Relationships Open
  5. 7.5Many variables at once Open
  6. 7.6Facets Open
  7. 7.7The seaborn objects interface Open
  8. 7.8Interactive charts with Plotly Open
  9. 7.9Declarative charts with Altair Open
  10. 7.PProject: a Tindahan exploration notebook Open

Stage 8: Statistics for analysis

Say how sure a finding is, and avoid the classic traps.

  1. 8.1Describing data Open
  2. 8.2Distributions Open
  3. 8.3Samples and populations Open
  4. 8.4The central limit theorem Open
  5. 8.5Confidence intervals Open
  6. 8.6Hypothesis tests and p-values Open
  7. 8.7Many tests and p-hacking Open
  8. 8.8Comparing groups and proportions Open
  9. 8.9Correlation Open
  10. 8.10Linear regression for analysis Open
  11. 8.11Correlation, causation and Simpson's paradox Open
  12. 8.12Experiments and A/B tests Open
  13. 8.PProject: did the promo work? Open

Stage 9: Exploratory and applied analysis

Take a real question from vague to a defensible answer.

  1. 9.1An EDA workflow Open
  2. 9.2Profiling reports, and their limits Open
  3. 9.3From a vague question to a measure Open
  4. 9.4Rates, ratios and indexes Open
  5. 9.5Prices and inflation Open
  6. 9.6Trends and seasons Open
  7. 9.7Segments and cohorts Open
  8. 9.8Comparing places Open
  9. 9.9Simple projections and their limits Open
  10. 9.10From findings to recommendations Open
  11. 9.PProject: the Tindahan business review Open

Stage 10: Sharing your work

Turn an analysis into something others can read, rerun and trust.

  1. 10.1Telling the story Open
  2. 10.2Reports from notebooks Open
  3. 10.3Dashboards Open
  4. 10.4Reproducibility Open
  5. 10.5Version control for data projects Open
  6. 10.6Data ethics and privacy Open
  7. 10.7Honest charts and claims Open
  8. 10.PProject: the Tindahan monthly report Open

Capstone

Analyse real Philippine open data from raw download to a published report.

  1. C.1The question and the data Open
  2. C.2Getting it Open
  3. C.3Cleaning it Open
  4. C.4Exploring it Open
  5. C.5Answering it Open
  6. C.6Showing it Open
  7. C.7Writing it up Open
  8. C.8A small dashboard Open
  9. C.9Recommendations and a reusable dataset Open
  10. C.10Reproducible and shared Open