python replace none with nan code example
Example 1: python pandas replace nan with null
df.fillna('', inplace=True)
Example 2: python list replace nan with 0
mylist = [0 if x != x else x for x in mylist]
df.fillna('', inplace=True)
mylist = [0 if x != x else x for x in mylist]