In case you want to normalize all of the nulls with python’s None.
df.fillna(np.nan).replace([np.nan], [None])
The first fillna will replace all of (None, NAT, np.nan, etc) with Numpy’s NaN, then replace Numpy’s NaN with python’s None.
In case you want to normalize all of the nulls with python’s None.
df.fillna(np.nan).replace([np.nan], [None])
The first fillna will replace all of (None, NAT, np.nan, etc) with Numpy’s NaN, then replace Numpy’s NaN with python’s None.