Skip to content

Instantly share code, notes, and snippets.

@jpigla
Created June 9, 2020 14:13
Show Gist options
  • Save jpigla/f021fcf92eaba6d0cd844ed4be1074cf to your computer and use it in GitHub Desktop.
Save jpigla/f021fcf92eaba6d0cd844ed4be1074cf to your computer and use it in GitHub Desktop.
# Python collection
#
#
# list from list without empty values
list_clean = [x for x in list_orig if str(x) != 'nan']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment