Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas df to mongodb

db.myCollection.insert_many(df.apply(lambda x: x.to_dict(), axis=1).to_list())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #df #mongodb
ADD COMMENT
Topic
Name
3+8 =