Skip to content
Learn Python with BNHR

Module 1 · Intermediate

Start here

Module 1 of Python for Survey Statistics: your laptop ready, the survey's tables, keys and codebook, and the R steps you use most written in pandas and polars. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.

Module 1Level Intermediate
On this page
  1. Overview
  2. What you do
  3. The module’s notebooks
  4. Quizzes
  5. Certification and support

Before any code, meet the data the whole course works on: the Survey of Fishing Households 2025, kept in three regional databases. You check your laptop is ready, learn how the ten tables nest (a household, its selection record and its members; a fishing unit and its crew, boats, gear, catch, landing sites and assistance), how a key of several parts ties them together, which records are marked as removed, and which codes fall outside their lists.

If you come from R, the last section writes the R steps used most in survey work, filter, mutate and inner_join, in pandas, with polars beside each, and names the two R habits that break in Python.

  1. Your laptop and the course folder ready
  2. The survey: its tables, keys and codebook
  3. From the tidyverse to pandas and polars: filter, mutate, inner_join

The notebooks are in your course folder; here you can read them without running anything. For reference in any module: primer: from r to python and primer: survey sampling in one page and glossary.

Quizzes

  • Pre-testBefore you start. Questions on the whole course, before you learn it. The post-test at the end of the course asks them again, so you can see what you learned.Python for Survey Statistics: the course test ↗
  • Check-inAt the end of the module. A short check on “Start here”, and how ready you feel; its answers show as soon as you submit.Check-in: Start here ↗

The quizzes are on BNHR Quizzes and count toward nothing. Learning on your own, a quiz opens as the self-paced one; while a training runs, it asks which training you are in.

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
ModuleA new edition: Round 3 arrives
AboutModule 5 of Python for Data Management: a new edition of the code list stops the command; find out why and map the round back with a crosswalk. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.
CoursePython for Data Management, free