IARP

Pandas replace all NaN and NaT values with None

data.replace({pandas.NaT: None}, inplace=True)