Skip to content

Lab Javier rodriguez #25

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 1 commit into
base: main
Choose a base branch
from

Conversation

xrodrimo
Copy link

No description provided.

@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,

  1. Return the third value: to get the third value you needed to run series[2], not a for loop iterating through df.index

  2. You didn’t get the median value of Score_2 because you are missing the parenthesis at the end of the method:
    score_2_median = df['Score_2'].median()

On the exercises with the admissions dataframe, when you want to check the first elements with head, you don’t need to assign that to a new_variable. You can just run the head method directly. Remember the closing parenthesis so it shows has a dataframe instead of just text
admissions.head()

For questions 3 and 4, you can run both conditions in one line suing:

rslt_3 = admissions[(admissions['CGPA'] > 9) & (admissions['Research'] > 0)]
rslt_4 =  admissions[(admissions["CGPA"]> 9) & (admissions["SOP"] < 3.5)]

And then calculating the rslt_4[‘Chance of Admit’].mean()

Check that code and please let me know if you have any issues regarding the last question or if you prefer we check the solution together

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