Skip to content

Instantly share code, notes, and snippets.

@tengpeng
Created April 10, 2016 02:51
Show Gist options
  • Save tengpeng/c3c7f78f7d09460609513680ef80882c to your computer and use it in GitHub Desktop.
Save tengpeng/c3c7f78f7d09460609513680ef80882c to your computer and use it in GitHub Desktop.
check empty element list
i = 0
for x in y_train:
i += 1
if not x:
print i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment