def MakeFrames():
 preg = nsfg.ReadFemPreg()
 live = preg[(preg.outcome == 1)]
 firsts = live[(live.birthord == 1)]
 others = live[(live.birthord != 1)]
 assert (len(live) == 9148)
 assert (len(firsts) == 4413)
 assert (len(others) == 4735)
 return (live, firsts, others)

def MakeFrames ( ) : preg = nsfg . ReadFemPreg ( ) live = preg [ ( preg . outcome == 1 ) ] firsts = live [ ( live . birthord == 1 ) ] others = live [ ( live . birthord != 1 ) ] assert ( len ( live ) == 9148 ) assert ( len ( firsts ) == 4413 ) assert ( len ( others ) == 4735 ) return ( live , firsts , others )
reads pregnancy data and partitions first babies and others .