I have this dict :
mydict = {'Andreas': 0.4833775399766172, 'Anh': nan, 'Maryse': 0.61436719272499474, 'Darren': -0.44898819782452443, 'Jesse': 0.14565852997686479, 'Mitchell': nan}
The nan's give me no information at all so I want to filter them out.
for k, v in mydict.iteritems():
if v == 'nan':
del mydict[v]
I tried this, but it doesn't work. Could anyone help me? Thanks in advance.