Closed optimopium closed 3 months ago
The solution to the following question in chap01soln.ipynb is wrong.
Question: What was the birthweight of the first baby born to the respondent with caseid 5012?
5012
Current Answer: preg[preg.caseid==5012].birthwgt_lb
preg[preg.caseid==5012].birthwgt_lb
But Correct Answer: preg.loc[(preg.caseid==2298) & (pregordr==1), "totalwgt_lb"]
preg.loc[(preg.caseid==2298) & (pregordr==1), "totalwgt_lb"]
You are not considering the first baby born part of the question in the current solution.
Yes, that's better. Thanks!
The solution to the following question in chap01soln.ipynb is wrong.
Question: What was the birthweight of the first baby born to the respondent with caseid
5012
?Current Answer:
preg[preg.caseid==5012].birthwgt_lb
But Correct Answer:
preg.loc[(preg.caseid==2298) & (pregordr==1), "totalwgt_lb"]
You are not considering the first baby born part of the question in the current solution.