This uses hardcoded start and end date, but have Python-Flask with Mongodb read in via pandas
import pandas as pd
from pymongo import MongoClient
client = MongoClient()
db = client.get_database("testing_flask")
collection = db.my_collections
df = pd.DataFrame(list(collection.find()))
df
How to extract my df and replace the hardcoded example with these dynamic data from MongodB_id date_real name
0 59a2ea17aa4bb088e4385d35 2017-06-08 ProjectX GUI Preview
1 59a2ea17aa4bb088e4385d36 2017-07-26 ProjectX GUI Evaluation
2 59a2ea17aa4bb088e4385d37 2017-08-09 ProjectX GUI Customer
3 59a2ea17aa4bb088e4385d38 2017-06-08 ProjectX ChipZ Preview
4 59a2ea17aa4bb088e4385d39 2017-05-04 ProjectX ChipZ FPGA
5 59a2ea17aa4bb088e4385d3a 2017-06-29 ProjectX ChipZ Initial
6 59a2ea17aa4bb088e4385d3b 2017-06-08 LakeA GUI Preview
7 59a2ea17aa4bb088e4385d3c 2017-07-26 LakeA GUI Evaluation
8 59a2ea17aa4bb088e4385d3d 2017-08-09 LakeA GUI Customer
i.e 'date_real' and 'name' specifically
Thanks