return Response( df.to_csv(), mimetype="text/csv", headers={"Content-disposition": "attachment; filename=filename.csv"})