Screen Link:
My Code:
admissions.rename(columns={'admit':'actual_label'},inplace=True)
bool_t = admissions['predicted_label']==admissions['actual_label']
correct_predictions = admissions[bool_t]
print(correct_predictions.head())
accuracy = len(correct_predictions)/len(admissions)
print(accuracy)
What I expected to happen:
I would get the correct answer.
What actually happened:
The lesson said that my answer matched the correct one but I was not allowed to progress.
There was no error.