def ReadFemPreg(dct_file='2002FemPreg.dct', dat_file='2002FemPreg.dat.gz'):
 dct = thinkstats2.ReadStataDct(dct_file)
 df = dct.ReadFixedWidth(dat_file, compression='gzip')
 CleanFemPreg(df)
 return df

def ReadFemPreg ( dct_file = '2002FemPreg.dct' , dat_file = '2002FemPreg.dat.gz' ) : dct = thinkstats2 . ReadStataDct ( dct_file ) df = dct . ReadFixedWidth ( dat_file , compression = 'gzip' ) CleanFemPreg ( df ) return df
reads the nsfg pregnancy data .