Skip to content

Instantly share code, notes, and snippets.

@ian-quinn
Last active May 13, 2021 08:25
Show Gist options
  • Save ian-quinn/ce183b5767ca64278a71cd8a3a72b3ba to your computer and use it in GitHub Desktop.
Save ian-quinn/ce183b5767ca64278a71cd8a3a72b3ba to your computer and use it in GitHub Desktop.
[component_dynamo] Useful dynamo python scripts #dynamo
# Cull Null from Dynamo list data
def ClearList(_list):
out = []
for _list1 in _list:
if _list1 is None:
continue
if isinstance(_list1, list):
_list1 = ClearList(_list1)
if not _list1:
continue
out.append(_list1)
return out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment