Lesson 1.1

Lists, dicts, and the types you will use

Lists, dictionaries, sets, and tuples cover almost everything before a dataframe shows up. Picking the right one is a performance decision as much as a style one.

Duration
8m
Level
Beginner
Students
31k students

Overview

Lists, dictionaries, sets, and tuples cover almost everything before a dataframe shows up. Picking the right one is a performance decision as much as a style one.

In this lesson you will:

  • Choose between list, dict, set, and tuple
  • Index, slice, and iterate without off-by-one errors
  • Understand mutability and why it bites

Resources

pandas documentation

The official reference for the tools used in this lesson.