Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- from flask import Flask, render_template, jsonify
- df = pd.read_csv("File.csv")
- temp = df.to_dict()
- app = Flask(__name__)
- @app.route("/")
- def index():
- return jsonify(temp)
- if __name__ == "__main__":
- app.run(debug=True)
Add Comment
Please, Sign In to add comment