AllenDowney / ThinkStats2

Text and supporting code for Think Stats, 2nd Edition
http://allendowney.github.io/ThinkStats2/
GNU General Public License v3.0
4.03k stars 11.31k forks source link

chap01ex.ipynb #67

Closed beccashen closed 7 years ago

beccashen commented 7 years ago

I've entered the correct answer for the first exercise. Question: Select the birthord column, print the value counts, and compare to results published in the codebook Answer: preg.outcome.value_counts().sort_index()

However, when I ran the code, it showed me the NameError. I assumed that preg has been pre-defined. Did I miss any steps? Thanks!


NameError Traceback (most recent call last)

in () ----> 1 preg.birthord.value_counts().sort_index() NameError: name 'preg' is not defined