Creating our NoSQL table in MongoDB
After successfully connecting and understanding how Studio 3T works, we will now import some MongoDB collections. We have seen in the Connecting to a NoSQL database (MongoDB) recipe how to get started with MongoDB, and in this recipe, we will import a MongoDB database and come to understand its structure. Although MongoDB has a specific format to organize data internally, understanding how a NoSQL database behaves is crucial when working with data ingestion.
We will practice by ingesting the imported collections in the following recipes in this chapter.
Getting ready
For this recipe, we will use a sample dataset of Airbnb reviews called listingsAndReviews.json
. You can find this dataset in the GitHub repository of this book at https://github.com/PacktPublishing/Data-Ingestion-with-Python-Cookbook/tree/main/Chapter_5/datasets/sample_airbnb. After downloading it, put the file into our mongo-local
directory, created in Chapter 1.
I kept...