Capstone project. Ex3

My exercise 3’s solution is wrong. It notices that I found fewer “Risky” loan than actual number. But I see my condition is right. Anyone can help spot what mistake I made?

GRADED CELL: exercise 3

START CODE HERE

{moderator edit: solution code removed}

END CODE HERE

Hi. Welcome to the community. I have removed the code you shared. The community guideline does not allow sharing graded code, regardless of the correctness. The allowed way to ask for feedback is to share the code output/error as a screenshot.
However, I took a look at it and found the challenge. Take a very close look at the string values you’re using in your .isin() method, particularly for the employment duration categories.

Check the exact spelling and capitalization of the values, especially pay attention to how “UpTo1Year” might be formatted. String matching needs to be precise, and even small differences in capitalization or spelling will cause conditions to not match properly.

Your logic structure is correct, it’s just a matter of getting the exact string values right.

Thanks Lukmanaj, I have corrected it and it runs well now.

1 Like