I have a function that analyzes a CSV file with Pandas and produces a dict with summary information. I want to return the results as a response from a Flask view. How do I r
I like this way:
@app.route("/summary") def summary(): responseBody = { "message": "bla bla bla", "summary": make_summary() } return make_response(jsonify(responseBody), 200)