Answers for "pandas df to mongodb"

0

pandas df to mongodb

db.myCollection.insert_many(df.apply(lambda x: x.to_dict(), axis=1).to_list())
Posted by: Guest on November-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language