Daftar Python Ganti Nan dengan 0

mylist = [0 if x != x else x for x in mylist]
Disgusted Dugong