Skip to main content
HomePython

Introduction to MongoDB in Python

Learn to manipulate and analyze flexibly structured data with MongoDB.

Start Course for Free
4 hours16 videos60 exercises20,403 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

MongoDB is a tool to explore data structured as you see fit. As a NoSQL database, it doesn't follow the strict relational format imposed by SQL. By providing capabilities that typically require adding layers to SQL, it collapses complexity. With dynamic schema, you can handle vastly different data together and consolidate analytics. The flexibility of MongoDB empowers you to keep improving and fix issues as your requirements evolve. In this course, you will learn the MongoDB language and apply it to search and analytics. Working with unprocessed data from the official nobelprize.org API, you will explore and answer questions about Nobel Laureates and prizes.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Flexibly Structured Data

    Free

    This chapter is about getting a bird's-eye view of the Nobel Prize data's structure. You will relate MongoDB documents, collections, and databases to JSON and Python types. You'll then use filters, operators, and dot notation to explore substructure.

    Play Chapter Now
    Intro to MongoDB and the Nobel Prize dataset
    50 xp
    Count documents in a collection
    50 xp
    Listing databases and collections
    100 xp
    List fields of a document
    100 xp
    Finding documents
    50 xp
    "born" approximation
    50 xp
    Composing filters
    100 xp
    We've got options
    100 xp
    Dot notation: reach into substructure
    50 xp
    Choosing tools
    50 xp
    Starting our ascent
    100 xp
    Our 'born' approximation, and a special laureate
    100 xp
  2. 3

    Get Only What You Need, and Fast

    You can now query collections with ease and collect documents to examine and analyze with Python. But this process is sometimes slow and onerous for large collections and documents. This chapter is about various ways to speed up and simplify that process.

    Play Chapter Now
  3. 4

    Aggregation Pipelines: Let the Server Do It For You

    You've used projection, sorting, indexing, and limits to speed up data fetching. But there are still annoying performance bottlenecks in your analysis pipelines. You still need to fetch a ton of data. Thus, network bandwidth and downstream processing and memory capacity still impact performance. This chapter is about using MongoDB to perform aggregations for you on the server.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

datasets

Laureates datasetPrizes dataset

collaborators

Collaborator's avatar
Hadrien Lacroix
Collaborator's avatar
Mari Nazary
Collaborator's avatar
Greg Wilson
Collaborator's avatar
Alex Yarosh
Donny Winston HeadshotDonny Winston

Donny is a computer systems engineer at Lawrence Berkeley National Lab.

Donny is a computer systems engineer at Lawrence Berkeley National Lab. He is the principal web developer for the Materials Project (materialsproject.org), and he co-maintains several codebases and services for data-driven discovery of advanced materials. MongoDB helps him support rapid collaboration and schema evolution for these services. An instructor for the Software Carpentry Foundation, he has taught workshop lessons on Python, Git, Bash, SQL, and MongoDB. In the past, he studied nano-fabrication and scanning-charged-particle-beam lithography before shifting professional focus to software-as-a-service. He likes hyphens.
See More

What do other learners have to say?

Join over 15 million learners and start Introduction to MongoDB in Python today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.