Gradium × TensorTonic Voice Challenge is open for registration.Register now
25 Problems

Pandas Sheet

Master the Pandas library for data analysis. Learn to load, clean, transform, and analyze datasets with the most popular Python data tool.

10 Easy12 Medium3 Hard

Unlock the full study plan

Upgrade to Pro to access the full curriculum.

Upgrade to Pro
5 sections

What you will learn

Pandas is the standard Python library for working with tables of data. This plan has 25 problems in five sections, taking you from building and inspecting a DataFrame to cleaning, grouping, merging and reshaping real datasets.

Prerequisites

Basic Python: lists, dictionaries, functions and loops. No prior Pandas experience is needed.

The sections, in order

  1. Loading and inspecting data: create DataFrames, check shapes and data types, and select columns, heads and tails.
  2. Indexing and selection: loc versus iloc, boolean indexing, multi-column selection, and setting and resetting the index.
  3. Data cleaning: missing values, duplicates, renaming, replacing values and changing data types.
  4. Aggregation and grouping: groupby, aggregation functions, pivot tables, cross tabulation and multi-level grouping.
  5. Merging and reshaping: merge, concatenate, melt, unstack and custom transforms with apply.

Where to go next

Continue with the NumPy study plan for the array operations Pandas is built on, or the SQL study plan for the same ideas in a database. When you are ready for models, try Cracking ML.