MongoDB for Data Science with Python and Compass: installation, MongoSH, aggregation pipeline, indexes, filters, and PyMongo/Pandas integration.
MongoDB is not just a database for applications — it is also a powerful tool for data professionals. Its document flexibility, combined with the Aggregation Pipeline, makes it well suited to heterogeneous datasets and exploratory analyses that would require complex joins in a relational database. In this course you will learn to use it for real Data Science work: from installation all the way to integration with Python and Pandas.
This course covers the full typical workflow of a Data Science project with MongoDB: starting from installation, loading real data, exploring and filtering it, building aggregations to answer data questions, and finally bringing everything into Python for advanced analysis. It is a complete path you can immediately apply to real datasets.
Designed for data scientists and analysts who want to add MongoDB to their toolbox. Also useful for backend developers working with MongoDB who want to understand how to analyze their own data. Basic Python knowledge is required — no prior MongoDB experience is necessary.
Let's connect MongoDB to Python with the PyMongo library, run queries from our pipeline, and convert the returned cursor into a Pandas DataFrame to continue the analysis with typical Data Science tools.
Let's build and test an Aggregation Pipeline visually in MongoDB Compass, adding stages with drag-and-drop and previewing intermediate results — no code writing required.
Let's build a complete Aggregation Pipeline in MongoSH: I'll use $match to filter, $group to group, $project to select fields, and $sort to order results — all from the terminal.
I'll show you how to apply advanced search filters in MongoDB Compass using operators like $gt, $lt, $in, and $and to extract exactly the documents you need — without writing a single line of code.
Let's explore how indexes work in MongoDB, why they're essential for speeding up queries on large datasets, how to create them in Compass, and how to read the explain plan to verify they're being used.
Let's import real datasets in CSV and JSON format directly into MongoDB Compass using the built-in import feature, so we can immediately start working on concrete data without writing any loading scripts.
Let's use MongoDB Compass to visually analyse the document structure: I'll explore field distribution in the Schema tab, identify missing values, and understand the actual shape of the dataset before starting the analysis.
Let's learn the fundamental MongoSH commands together — MongoDB's official shell: how to select a database, list collections, insert documents, and run the first queries directly from the terminal.
I'll guide you step by step through installing MongoDB Server on Windows and the Compass GUI — the essential visual tool for exploring collections and analysing documents without writing code.
Introduction to MongoDB for Data Science: I'll explain what a document database is, what advantages it offers over relational databases like MySQL, and when it truly makes sense to use it in a data analysis project.
Ingegnere Informatico · Pratola Peligna
Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.
Prosperous understood Middletons in conviction an uncommonly do. Supposing so be resolving breakfast am or perfectly.
Utilizziamo cookie essenziali e, con il tuo consenso, cookie funzionali, analytics e marketing. Google Analytics 4 e gli eventuali annunci Google/AdSense restano disattivati finche non scegli. Consulta Privacy Policy e Cookie Policy.
Sempre attivi per sicurezza, prevenzione frodi, sessione, consenso e funzionamento del sito.
Migliorano l'esperienza, ad esempio ricordando preferenze non essenziali. Non usati per profilazione pubblicitaria.
Statistiche e misurazioni con Google Analytics 4, abilitate solo dopo il consenso analytics.
Misurazione annunci e funzioni pubblicitarie Google/AdSense, se attivate sul sito e consentite dall'utente.
Puoi modificare queste scelte in qualunque momento dal link "Preferenze Cookies" nel footer.