Update 'insertMongo.py'

master
Angelos Chatzimparmpas 3 years ago
parent 7d88ed20b7
commit b6b95d7b40
  1. 4
      insertMongo.py

@ -16,8 +16,8 @@ def import_content(filepath):
data = pd.read_csv(file_res)
data_json = json.loads(data.to_json(orient='records'))
db_cm.remove()
db_cm.insert(data_json)
db_cm.drop()
db_cm.insert_many(data_json)
if __name__ == "__main__":
filepath = './data/heart.csv'

Loading…
Cancel
Save