Skip to content

How to remove none in Python?

Not_none_values = filter(None.__ne__, list_of_values)
list_of_values = list(Not_none_values)
See also  Python code snippet - How to convert array of arrays into single array with unique values in numpy?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.