I have a list that countain values, one of the values I got is \'nan\'
countries= [nan, \'USA\', \'UK\', \'France\']
I tried to remove it,
Another way to do it would include using filter like this:
countries = list(filter(lambda x: str(x) != 'nan', countries))