Skip to content

pandas1 #7

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Estherkii
Copy link

image

@sh-ih
Copy link

sh-ih commented Oct 23, 2023

You’ll dream of pandas at the end of this bootcamp! Congrats on a very good lab

Some comments:

On question 3 we had two conditions to meet: “number of rows where the CGPA is greater than 9 and the student has performed an investigation.” So you needed to run both conditions at the same time:

rslt = admissions[(admissions['CGPA'] > 9) & (admissions['Research'] > 0)]
rslt

And the same on question 4: “all the rows where the CGPA is greater than 9 and the SOP score is less than 3.5”:

rslt_4 =  admissions[(admissions["CGPA"]> 9) & (admissions["SOP"] < 3.5)]
rslt_4

And then calculate the mean of the Chance to admit column
mean_chance = rslt_4[‘Chance of Admit’].mean()

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