Preparation

Preparation#

This session is mostly concerned with pandas: representing tabular data in DataFrames and Series, loading and saving data, inspecting and summarizing it, and cleaning it with a pipeline of pure functions.

To prepare, work through the following materials:

  1. Accessing the file system in Python

  2. Basic Pandas: Practical commands

  3. Functional data cleaning

Optional material#

  • Setting and renaming columns and indices: the functional approach makes most renaming unnecessary because you assign each column of a new DataFrame exactly once, but it is useful to recognise the patterns

If the functional approach feels unfamiliar and you would like to see how it connects to the way you have cleaned data so far, but in Python, watch Imperative data cleaning.