cleanedList = [x for x in countries if str(x) != 'nan'] # another way # x is the list [v for v in x if v == v]