mysteryRestaurant = [] for rest in restaurants.find({"name": {"$regex" : "/Palace$/"}}): mysteryRestaurant.append(rest) result = pd