Data Wrangling with MongoDB (Lesson 4 Working with MongoDB)

Yang Wang
Yang Wang
Jul 25, 2017 · 2 min read

Study notes and mind-map for the free course of Data Wrangling with MongoDB in Udacity

In this post, we will talk about the mongoDB query language, putting documents into mongoBD, and getting them out using a variety of different operations and operators.

What is MongoDB?

MongoDB is widely used in big data and leading NOSQL database( document database).

Why MongoDB?

  • Flexible schema(easy for csv file or hierarchical data)
  • Oriented toward programers (data types found in most popular language)
  • Flexible deployment
  • Designed for big data (run on your own or multiple servers)
  • Aggregation framework (easy for quick data analysis)

Get Started with MongoDB

You can download MongoDB for your platform from the official MongoDB page. You can also read specific MongoDB installation instructions.

MongoDB has a lot of drivers and client libraries. The one we will be using in this course is PyMongo. See the official documentation for PyMongo installation instructions.

Mind-map for basic queries

Bellow is the mind-map of sample code using PyMongo to run queries.

  • Getting Data into MongoDB
  • Find Document
  • Operations and Operators

Above is all my takeaway from this lesson. Feel free to like and repost if you learned some from this post. And please don’t feel any hesitation to ask question and give advice. Enjoy self-learning and have fun!

Yang Wang

Written by

Yang Wang

Data Enthusiast, Life-long Leaner, Love everything beautiful

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade