Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patricia S #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

psaeztorres
Copy link

No description provided.

@sh-ih
Copy link

sh-ih commented Nov 22, 2023

This was a very long lab, but you did a great job.

On question 5, your results are showing companies with more than 1000 employees. A possible query to get the expected result is:

filters1 = {"founded_year": {"$lte": 2005}, "number_of_employees": {"$lt": 1000}}
projection = {"_id":0, "name":1, "number_of_employees": 1, "founded_year": 1}
list(c.find(filters1, projection).sort("number_of_employees", -1).limit(5))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants