pandas nat to null? code example
Example: pandas nat to null?
dfTest2['InvoiceDate'] = (dfTest2['InvoiceDate']
.astype(str) # <- cast to string to simplify
# .replace() in newer versions
.replace({'NaT': None} # <- replace with None
)