Not getting the right answer

Screen Link:

My Code:
dummy_df = pd.get_dummies(loans[[“term”, “verification_status”,“home_ownership”,“purpose”]])
loans = pd.concat([loans, dummy_df], axis=1)
loans = loans.drop([“term”, “verification_status”,“home_ownership”,“purpose”], axis=1)

Replace this line with your code

What I expected to happen:
to get right answer

What actually happened:
doesn’t match the right answer

Replace this line with the output/error

Why does change in sequence in columns result in wrong answer ? When I am follow exact sequence then I am getting correct answer otherwise not

Hi Sanchit,

You can find useful this post.