Skip to main content

Sessions

The notebook and the data of each session.

How to use a session

  1. Download the session zip (button below).
  2. Extract it in your user folder, the one that contains DMA. The zip carries DMA/S01_pandas_I/..., so the session lands inside your DMA folder (what the folder must look like).
  3. Open Jupyter from DMA as in the setup and click on the notebook.
NoteHow to extract, by system

Windows: right-click the zip, Extract All, and set the destination to your user folder, C:\Users\<you>. Or in PowerShell:

Expand-Archive -Force $HOME\Downloads\S01_pandas_I.zip $HOME

macOS and Linux, in a terminal:

unzip -o ~/Downloads/S01_pandas_I.zip -d ~

If the browser already extracted the zip (Safari does), move the folder S01_pandas_I, the one inside the new DMA, into your DMA. Never drag one DMA folder onto another: the system offers to replace it, and that deletes your work.

Check: the notebook is at DMA/S01_pandas_I/S01_pandas_I.ipynb.

Extracting a session again replaces its notebook: rename yours first.

Without an installation, use Open in Colab (how it works). View the notebook shows it in the browser, to read before or after class.

Published sessions

Session 1 · Wed 25 Nov

The working environment and pandas I: one table

Notebooks, kernels and the working directory. Then the concepts for working with one table (unit of observation, types of variables, select, filter, create, sort, summarise, group, weights), applied in pandas with the same in R, Stata and SQL.

View the notebook Download session (zip) Open in Colab View the R notebook Open in Colab (R)