Skip to content
Learn Python with BNHR

Course · Intermediate · 20–24 hours

Companion

The solution to every exercise in Python for Survey Statistics, and why it works, one deliberate click away.

Code SVYLevel IntermediateLength 20–24 hoursModules 9Extras 10
On this page
  1. Overview
  2. 1. Start here
  3. 2. Get the tables: from regional databases to one flat table
  4. 3. Match the keys
  5. 4. Edit rules and duplicates
  6. Debugging drill D1. Debugging drill: a flat table that lies
  7. Stretch exercises S1. Stretch: processing
  8. 5. Recode and tabulate
  9. 6. Estimate under the survey design
  10. 7. Publish the tables
  11. Stretch exercises S2. Stretch: tabulation
  12. 8. Anomalies by rule and by statistics
  13. 9. Anomalies with machine learning
  14. Debugging drill D2. Debugging drill: a detector that flags the wrong rows
  15. Stretch exercises S3. Stretch: detection
  16. Capstone. Capstone
  17. Primer P1. Primer: from R to Python
  18. Primer P2. Primer: survey sampling in one page
  19. Certification and support

The solution to every exercise in the course's notebooks, and why it works. Use it when you have been stuck on an exercise for ten minutes, or when your check is green and you want to compare. Each answer stays closed until you ask for it.

1. Start here

  • Start here 00_start.py: 4 of 4 exercises explained

2. Get the tables: from regional databases to one flat table

3. Match the keys

4. Edit rules and duplicates

Debugging drill D1. Debugging drill: a flat table that lies

Stretch exercises S1. Stretch: processing

5. Recode and tabulate

6. Estimate under the survey design

7. Publish the tables

Stretch exercises S2. Stretch: tabulation

8. Anomalies by rule and by statistics

9. Anomalies with machine learning

Debugging drill D2. Debugging drill: a detector that flags the wrong rows

Stretch exercises S3. Stretch: detection

Capstone. Capstone

  • Capstone 99_capstone.py: 6 of 6 exercises explained

Primer P1. Primer: from R to Python

Primer P2. Primer: survey sampling in one page

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
ModuleEdit rules and duplicates
AboutModule 4 of Python for Survey Statistics: editing and cleaning a survey's data: frequency tables against the codebook, cross-item rules, specifications that edit with a log, and duplicates by key and by a stated definition. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.
CoursePython for Survey Statistics, free