Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution is Wrong chap01soln.ipynb #205

Open
optimopium opened this issue Apr 15, 2023 · 0 comments
Open

Solution is Wrong chap01soln.ipynb #205

optimopium opened this issue Apr 15, 2023 · 0 comments

Comments

@optimopium
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant