From fe101be5d8fdeccf9cc775e578967fa188bdc537 Mon Sep 17 00:00:00 2001 From: Walker Waylon Scott Date: Fri, 19 May 2017 21:39:07 -0500 Subject: [PATCH] python 2.7 compatibility --- app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 15e7493..891b82e 100644 --- a/app/app.py +++ b/app/app.py @@ -33,7 +33,7 @@ def index(): @app.route('/data/') def data(nation): - data = '{' + f'labels:{df2.index.astype(int).tolist()}, series: {df2[nation].astype(float).tolist()}' + '}' + data = '{' + 'labels:{}, series: {}'.format(df2.index.astype(int).tolist(), df2[nation].astype(float).tolist()) + '}' return jsonify({'results':df2[nation].astype(float).tolist(), 'labels':df2.index.astype(float).tolist()}) if __name__ == '__main__':