supprimer nan de la liste 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),:]