Created
November 19, 2015 16:02
-
-
Save fonnesbeck/74715bb8ced047d651c6 to your computer and use it in GitHub Desktop.
vlbw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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