O'Reilly logo

Practical Data Analysis by Hector Cuesta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Data Processing and Aggregation with MongoDB

Aggregation queries are a very common way to get summarized data by counting or adding features to our dataset. MongoDB provides us with different ways to get the aggregated data quickly and easily. In this chapter, we will explore the basic features of MongoDB as well as two ways to get summarized data using the group function and the aggregation framework.

In this chapter we will cover:

  • Getting started with MongoDB:
    • Database
    • Collections
    • Documents
    • Mongo shell
    • Insert/Update/Delete operations
    • Queries
  • Data Processing:
    • Data transformation with OpenRefine
    • Inserting documents with PyMongo
  • Group
  • The aggregation framework:
    • Pipeline
    • Expressions

In Chapter 2, Working with Data, we introduced the NoSQL (Not Only ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required