Inserts a row as a document into the specified collection

db_insert(cons, collection_name, df_row)

Arguments

cons

connection to mongodb

collection_name

the collection to look in

df_row

the dataframe row to insert