Skip to content
Learn Python with BNHR

Debugging drill D2 · Beginner

Debugging drill: the report that goes wrong

The second debugging drill of Arrays & DataFrames, after module 5: five mistakes that put wrong numbers in a survey report, to predict, trace, fix and explain.

Extra D2Level Beginner
On this page
  1. Overview
  2. What you do
  3. Its notebooks
  4. Certification and support

Five steps of a survey report, each giving a number that looks plausible and is wrong: an average of province averages where a weighted mean was needed, a join that multiplies rows, a groupby that drops the plots with no crop, interview dates read month-first, and square meters added to hectares. Most of them raise no error; the checks find them.

For each one you predict, trace, fix and explain, as in the first drill. The companion has each fix and why it works.

  1. The report that goes wrong: five bugs to find and fix

The notebooks are in your course folder; here you can read them without running anything. For reference in any module: primer: marimo and the python this course assumes and primer: pandas 2 to 3 and glossary.

Saved in this browser only

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 module
ModuleCharts and sharing
AboutModule 7 of Arrays & DataFrames: the chart that answers the question honestly, choosing between matplotlib, seaborn and Altair, and a small interactive marimo app. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.
CourseArrays & DataFrames, free