Skip to content

Instantly share code, notes, and snippets.

@fonnesbeck
Created November 19, 2015 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fonnesbeck/74715bb8ced047d651c6 to your computer and use it in GitHub Desktop.
Save fonnesbeck/74715bb8ced047d651c6 to your computer and use it in GitHub Desktop.
vlbw
vlbw = vlbw.replace({'inout':{'born at Duke':0, 'transported':1},
'delivery':{'abdominal':0, 'vaginal':1},
'ivh':{'absent':0, 'present':1, 'possible':1, 'definite':1},
'sex':{'female':0, 'male':1}})
vlbw = vlbw[[u'birth', u'exit', u'hospstay', u'lowph', u'pltct',
u'bwt', u'gest', u'meth',
u'toc', u'delivery', u'apg1', u'vent', u'pneumo', u'pda', u'cld',
u'ivh']].dropna()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment