Hi
This assignment took me a while (#UNQ_10 especially), but I finally passed all the tests. However, the code after UNQ_C11 does not run and I get error messages, so despite passing the tests something must still be incorrect.
I am unsure which code I am allowed to post to adhere to the Coursera standards.
So if one of the mods could have a look at my code & help me that would be great
Thank you!
can you first post the screenshot of the error you got after running UNQ C11, just make sure to avoid post any codes from grade function cell.
output of UNQ C11:
output of first cell that throws an error after:
Thank you for your help!
hi @IrinaKempf
check while defining for patients received or did not receive treatment did you use Dataframe to the TRTMT with it respective positioning?
your error could not really be in UNQC11 but in previous grade functions. Remember passing a unittest doesn’t confirms your codes are still correct.
I am not sure I understand your first question. When computing proportion_treated(df) for example i did reference the TRTMT column of the data frame (e.g. UNQ C1), but I also believe that should be the case?
I didn’t tell you to just check in Unq c1, but check over all and as an example I told you where trtmt was used.
You can send me the screenshot of the codes by personal DM, click on my name and then message.