How do I display data from mongodb to a flask template using flask_pymongo?

Solution
`df = pd.DataFrame.from_dict(json_normalize(db.lists.find))
 return render_template("find.html", title="Find - Website", tables = [df.to_html(classes='dfstyle',header='true')]`