MongoDB Aggregation in Python
Learn how to create aggregation pipelines with Python.
MongoDB Aggregation with Python
Unit Overview
In this unit, you'll learn how to perform basic aggregation with Python. First, you'll learn what aggregation is and explore the components of an aggregation pipeline. Next, you'll learn how to build a pipeline that uses the $match
and $group
stages. Finally, you'll explore the $sort
and $project
stages and build a pipeline that uses them.
Prerequisites
Lessons in This Unit
- Lesson 01: Building a MongoDB Aggregation Pipeline in Python Applications
- Lesson 02: Using MongoDB Aggregation Stages with Python:
$match
and$group
- Lesson 03: Using MongoDB Aggregation Stages with Python:
$sort
and$project

Julianna Chen I Senior Curriculum Engineer
Julianna is a Senior Curriculum Engineer on the Education team, based in Vancouver, Canada. She’s developed educational content at universities and non-profits for over ten years, and is passionate about supporting access to quality technical education worldwide.

Emily Pope | Senior Curriculum Designer
Emily is a Senior Curriculum Designer at MongoDB. Prior to MongoDB, Emily worked closely with professors at MIT and Columbia to design bootcamps in full stack development and data science at Emeritus. She also worked as an instructional designer on database and computer science learning experiences at Cengage. Emily loves learning about the everchanging tech space and is passionate about making these skills accessible to a global audience.