Eliminar nan de la lista de python
cleanedList = [x for x in countries if str(x) != 'nan']
Worried Walrus
cleanedList = [x for x in countries if str(x) != 'nan']
x = x[~numpy.isnan(x)]
df = df[df['my_var'].notna()]
a[ ~np.isnan(a).any(axis=1),:]