I believe the codes are good but I am getting this error look at the screenshot
{mentor edit: code removed}
I believe the codes are good but I am getting this error look at the screenshot
{mentor edit: code removed}
Hello @Ibrahima_Barry
Don’t post codes, it is against community guidelines.
the way you have recalled the codes for unique values is incorrect
it should be of this format df1[patient_col].values, use the set of the format mentioned before to get unique values in data frame
Another error is where you used bool to check leakage in both patient groups, rather use length of patient in both group need to be greater than 0, also notice the closing tuple is incorrectly placed by you for this code line.
Regards
DP
Please do not post your code on the forum. That’s not allowed by the Code of Conduct.
Perhaps you are not using the variable “patient_col” correctly. The way your code uses it, you’re treating it as the name of a method, rather than as a text string.
Thank you, I’ll not post code again. I see my error, I was evaluating the length - I did not type len. Problem solved.