Guest User

Untitled

a guest
Mar 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import pandas as pd
  2. from flask import Flask, render_template, jsonify
  3. df = pd.read_csv("File.csv")
  4. temp = df.to_dict()
  5. app = Flask(__name__)
  6. @app.route("/")
  7. def index():
  8. return jsonify(temp)
  9. if __name__ == "__main__":
  10. app.run(debug=True)
Add Comment
Please, Sign In to add comment