I'm curious if it's possible to convert NaT values to None values in Pandas 1.3. A script I had running is now breaking with the update and it seems like everything I've tried has been unsuccessful in converting these values. I've tried
df['time'] = df['time'].apply(lambda x: None if x!=x else x)
df = df.where(df.notnull(), None)
This is causing issues when writing to Postgres using the upsert_dict_list methodology.
Thoughts?