cleanedList = [x for x in countries if str(x) != 'nan']
x = x[~numpy.isnan(x)]
df = df[df.index.notnull()]
df = df[df['my_var'].notna()]
df.dropna(subset = ["column2"], inplace=True)
cleanedList = [x for x in countries if str(x) != 'nan']
cleanedList = [x for x in countries if str(x) != 'nan']