Skip to content
Learn Python with BNHR

Primer P1 · Intermediate

Primer: from R to Python

Primer 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.

Extra P1Level Intermediate
On this page
  1. Overview
  2. Its notebooks
  3. Certification and support

One table of the R verbs survey work uses most, from the tidyverse, data.table, DBI and ReGenesees, each beside its equivalent in pandas, polars, DuckDB or svy, with a runnable example on the survey. It also sets RDS beside Parquet and Quarto beside marimo, and names the habits that differ: counting from 0, copy-on-write, method chains for pipes, missing values, factors and categories. Where a survey call has an svy equivalent, the primer also shows it written by hand, so you can see what it computes.

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

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