Skip to content

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