Skip to content
Learn Python with BNHR

Course · Beginner · 16–20 hours

About Arrays & DataFrames

Analyze one dataset in memory with NumPy, pandas 3 and polars: read it with the right types, clean, reshape, combine and summarize it, with survey weights, and chart it in matplotlib, seaborn or Altair. Taught in marimo on a synthetic farm survey and monthly farmgate prices, for learners who have finished Python Essentials.

Code ADFLevel BeginnerLength 16–20 hoursModules 7Extras 9
On this page
  1. Overview
  2. The modules
  3. When you are stuck
  4. Certification and support

Analyze a farm survey from its raw files to a chart someone can act on.

You work in marimo notebooks with NumPy, pandas 3 and polars, on one dataset held in memory: you read it with the right types, clean it, reshape and combine it, summarize it with its survey weights, and chart it in matplotlib, seaborn or Altair. The running case is a farm survey of seven provinces, with monthly farmgate prices for a first look at time series.

The course follows Python Essentials: you need what it covers (values, lists and dictionaries, decisions, loops, functions, files), and a laptop on which you can install a program. If you come from elsewhere, primer P1 covers marimo and the Python the course assumes. Python for Data Management comes next, and builds pipelines on what this course teaches.

The area codes and place names are real, from the Philippine Statistics Authority’s PSGC (3rd quarter 2026); the households, plots, weights and prices are invented for teaching.

Each module is one topic, taught in sections; a training groups them into its own days or sessions.

  1. Module 1, Start here
  2. Module 2, Arrays with NumPy
  3. Module 3, DataFrames
  4. Debugging drill D1, Debugging drill: a table that lies
  5. Module 4, Summarize and combine
  6. Module 5, Cleaning and time
  7. Debugging drill D2, Debugging drill: the report that goes wrong
  8. Stretch exercises S1, Stretch: DataFrames
  9. Module 6, polars
  10. Stretch exercises S2, Stretch: polars
  11. Module 7, Charts and sharing
  12. Stretch exercises S3, Stretch: charts
  13. Capstone

For any time

Every exercise has a check that names the input that went wrong, and a note of common causes. If you are still stuck after ten minutes, or your check is green and you want to compare, the companion has the solution to each exercise and why it works.

Certification and support

We offer additional resources, certificates, ongoing support, and other perks to those who join our instructor-led training.

Join an upcoming training to take this as an instructor-led course, or contact us to arrange one for your team or organization.

Something new

Identify results
LayerExplore a debugging drill
Debugging drill D1Debugging drill: a table that lies
AboutThe first debugging drill of Arrays & DataFrames, after module 3: six bugs in reading and selecting the farm survey, to predict, trace, fix and explain.
CourseArrays & DataFrames, free