Courses‎ > ‎Software Development‎ > ‎Dyrland-Weaver‎ > ‎Work‎ > ‎

Work 04: Where should we eat?

posted Feb 14, 2018, 9:34 AM by JonAlf Dyrland-Weaver
As a duo, devise then implement a python function with appropriate parameters for each bullet point below. Each function will use pymongo library methods to connect to your local MongoDB-serving-Simpson and execute the appropriate query.
  • All restaurants in a specified borough.
  • All restaurants in a specified zip code.
  • All restaurants in a specified zip code and with a specified grade.
  • All restaurants in a specified zip code with a score below a specified threshold.
  • Something more clever.
PROTIP: Test each query in the mongo shell before baking into your python code.

Save in workshop under 04_mongo, as lastF-lastF.
Comments