remove nan from list

PHOTO EMBED

Wed May 11 2022 07:23:36 GMT+0000 (Coordinated Universal Time)

Saved by @aurora1625 #python

cleanedList = [x for x in countries if str(x) != 'nan']

# another way
# x is the list
[v for v in x if v == v]
content_copyCOPY