Skip to content

Commit 19c22ed

Browse files
authored
Update nsfg.py
Fixing issue AllenDowney#83
1 parent 61b47b9 commit 19c22ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/nsfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def ValidatePregnum(resp, preg):
9595
preg_map = MakePregMap(preg)
9696

9797
# iterate through the respondent pregnum series
98-
for index, pregnum in resp.pregnum.items():
98+
for index, pregnum in resp.pregnum.iteritems():
9999
caseid = resp.caseid[index]
100100
indices = preg_map[caseid]
101101

0 commit comments

Comments
 (0)