Scenario: I have a dataframe 'df' with multiple columns. In this I add a column 'date' of type '<class 'datetime.datetime'>' .
df['date'] = datetime.datetime.now()
Then I am storing this in MongoDB using
db.collection.insert_many(df.to_dict('records'))
Problem: So after storing into db I'm getting type of 'date' column as Date, But I need to have ISODate type.