Skip to content

Commit

Permalink
Update nsfg.py
Browse files Browse the repository at this point in the history
Fixing issue AllenDowney#83
  • Loading branch information
AllenDowney authored Aug 30, 2017
1 parent 61b47b9 commit 19c22ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/nsfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def ValidatePregnum(resp, preg):
preg_map = MakePregMap(preg)

# iterate through the respondent pregnum series
for index, pregnum in resp.pregnum.items():
for index, pregnum in resp.pregnum.iteritems():
caseid = resp.caseid[index]
indices = preg_map[caseid]

Expand Down

0 comments on commit 19c22ed

Please sign in to comment.