Skip to content

Conversation

@marcfolchp
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:

On question 12 you got the most and least expensive products, but you didn’t print the difference.

On the exercises with the admissions dataframe, question 2 asked to “Keep the column in the dataframe in addition to making it an index”, you did the set_index, but since you didn’t use drop=False as a parameter, you didn’t keep Serial No. in the dataframe.

Answers to 3 and 4 are ok, but if you want to run both conditions in one line, you can use:

rslt_3 = admissions[(admissions['CGPA'] > 9) & (admissions['Research'] > 0)]
rslt_4 =  admissions[(admissions["CGPA"]> 9) & (admissions["SOP"] < 3.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