The datasets considered here are part of the Learning Management System (LMS) data. They project information pertaining to student enrolment, tracking, reporting, and delivery of educational courses. Let's load the test DataFrame from the flat file:
Loading test DataFrame from flat file
The pymongo library is used to connect MongoDB to Python. Generally, MongoDB listens on port 27017:
MongoDB connection from Python
We can see the connection parameters in the following screenshot. Since the database is installed locally, we are connecting to it via localhost. The name of the loaded database is lms_db:
Reading data from MongoDB