how to make sure nan value in pandas is replaced before pushing to mongo db code example
Example: pandas df to mongodb
db.myCollection.insert_many(df.apply(lambda x: x.to_dict(), axis=1).to_list())
db.myCollection.insert_many(df.apply(lambda x: x.to_dict(), axis=1).to_list())