def MakePregMap(df):
    d = defaultdict(list)
    for index, caseid in df.caseid.iteritems():
        d[caseid].append(index)
    return d
Return the user model
dataset/ETHPy150Open AllenDowney/CompStats/nsfg.py/MakePregMap--crossover with--dataset/ETHPy150Open omab/python-social-auth/social/storage/base.py/UserMixin.user_model