Python for Data Work
LESSON 2.1

Series, dataframes, and indexing

Learn key techniques and workflows in Python for Data Work.

30m
beginner
26,575 students

Overview

A dataframe is columns of typed series sharing an index. Once the index clicks, selection with loc and iloc stops being guesswork.

In this lesson you will:

  • Create dataframes and inspect their dtypes
  • Select rows and columns with loc and iloc
  • Understand why the index matters

Pro Tip

Use caching and revalidation wisely to ensure your app stays fast and data remains fresh without unnecessary requests.

Resources