from flask import Flask
from flask import render_template
app = Flask(__name__)


def load_data():
    return [{'country': 'Ala', 'local_price': 21, 'dollar_ex':2, 'dollar_price': 11, 'dollar_ppp': 4, 'dollar_valuation': 22},
            {'country': 'AlASa', 'local_price': 21, 'dollar_ex':2, 'dollar_price': 11, 'dollar_ppp': 4, 'dollar_valuation': 22}]
@app.route('/')
def hello_world():
    data = load_data()
    headers = data[0]
    print(headers)
    body = data[1:]
    print list(body)
    # print(body)
    
    return render_template('index.html', data=data, headers=headers)

@@ -51,16 +51,44 @@
 emplate%0A
+from to_dict import to_dict%0A
 app = Fl
@@ -135,252 +135,28 @@
 urn 
-%5B%7B'country': 'Ala', 'local_price': 21, 'dollar_ex':2, 'dollar_price': 11, 'dollar_ppp': 4, 'dollar_valuation': 22%7D,%0A            %7B'country': 'AlASa', 'local_price': 21, 'dollar_ex':2, 'dollar_price': 11, 'dollar_ppp': 4, 'dollar_valuation': 22%7D%5D
+to_dict('data.csv')%0A
 %0A@ap

add to_dict