Module 2 · Lesson 4 of 58/56 in the course~18 min
Module lessons (4/5)
pandas essentials
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 2 — Toolkit: numpy, statistics and pandas
DataFrames, filtering, grouping and quick summaries with describe.
What you'll learn in this lesson
- Build a DataFrame and inspect it.
- Filter rows and group data to compute summaries.
- Use
describeto get a quick statistical overview.
Overview
numpy arrays hold numbers of one type. Real datasets mix text, numbers and dates, and their columns have names. pandas gives you the DataFrame: a table with named columns, built on top of numpy.
Adjust the threshold slider or switch to group-by city aggregation to watch pandas filter and summarise rows live.
Sections covered in this lesson
- 1The hook: real data is a table
- 2Interactive lab: filtering and grouping DataFrames
- 3Pandas DataFrame vs. NumPy ndarray
- 4Creating and inspecting a DataFrame
- 5Filtering rows
- 6Grouping
Pro Lesson · Module 2 — Toolkit: numpy, statistics and pandas
Unlock "pandas essentials" and the full Machine Learning: from first principles to practice curriculum
DataFrames, filtering, grouping and quick summaries with describe.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.