This project aims to analyse restaurants data in different aspects by using NoSql (MongoDB).
- Python - version 3.9.5
- MongoDB - version 5.0
- Clone the project
$ git clone https://github.com/atulgandhi1137/P0_Restaurants_Analysis.git
$ pip install pymongo
- Start the mongo server
$ 'C:\Program Files\MongoDB\Server\5.0\bin\mongod' --dbpath=<path to store data>
- Start the shell and create a database
$ 'C:\Program Files\MongoDB\Server\5.0\bin\mongo'
>>create database restaurants
- Import the json file in restaurant database using mongoimport
$ 'C:\Program Files\MongoDB\MongoDBimport\bin\mongoimport' --db restaurants --collection restaurant --type json --file <filename.json>
- Now, Go to Mongo shell and start executing queries
Once you have the imported json data , you can run PyMongo.py file