Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
for col, tp in nullcols:
if (tp == bool):
dfX.loc[dfX[col]==True, col] = 'TRUE'
dfX.loc[dfX[col]==False, col] = 'FALSE'
dfX.loc[dfX[col].isnull(), col] = 'MISSING'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment