Skip to content

Instantly share code, notes, and snippets.

@thanakijwanavit
Created September 4, 2020 09:12
Show Gist options
  • Save thanakijwanavit/2f6722581a7465da7614fb0dbb2b1ef5 to your computer and use it in GitHub Desktop.
Save thanakijwanavit/2f6722581a7465da7614fb0dbb2b1ef5 to your computer and use it in GitHub Desktop.
remove none from a dict
def removeNone(data):
return { k:v for k, v in data.items() if v is not None }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment