Skip to content
Learn Python with BNHR

Module 7 · Intermediate

Publish the tables

Module 7 of Python for Survey Statistics: estimates written to a formatted workbook, and the tabulation as one script that writes every table at every level, with the sample's own counts beside each estimate, to one workbook. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.

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

National, regional and provincial estimates go to one long table and to a formatted sheet: number formats, headers and a notes sheet that says the source and the date. Then the whole tabulation becomes one script: an estimate() helper with fixed defaults, every table at every level from one set of inputs, and one workbook with a sheet for each table, its three levels stacked and the sample’s own counts beside each estimate.

  1. Tables to a workbook: sheets, number formats, a notes sheet
  2. The tabulation as one script, from the flat table to one workbook

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

  • Check-inAt the end of the module. A short check on “Publish the tables”, and how ready you feel; its answers show as soon as you submit.Check-in: Publish the tables ↗

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 primer
Primer P1Primer: from R to Python
AboutPrimer P1 of Python for Survey Statistics, for any time: the R you know, from the tidyverse, data.table, DBI and ReGenesees, beside its pandas, polars, DuckDB and svy equivalent, run on the survey.
CoursePython for Survey Statistics, free