x = x[~numpy.isnan(x)]
cleanedList = [x for x in countries if str(x) != 'nan']
df = df[df['my_var'].notna()]
df[~np.isnan(df)]