From 844fd2f04cf4e14d6415d2b6b586538df10a702f Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Fri, 24 Apr 2020 05:01:04 +0530 Subject: [PATCH] Display user tweet time too --- display.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/display.py b/display.py index 088b0ef..a484bb7 100644 --- a/display.py +++ b/display.py @@ -14,11 +14,11 @@ def homepage(): # read user files and display likes and tweet newdf = pd.DataFrame() for idx, filename in enumerate(files): - userdata = pd.read_csv(os.path.join(csv_folderpath,filename), usecols=['username','likes_count','tweet']) + userdata = pd.read_csv(os.path.join(csv_folderpath,filename), usecols=['username','likes_count','tweet','time']) newdf = newdf.append(userdata.loc[0]) - newdf = newdf[['username','likes_count','tweet']] + newdf = newdf[['username','time','likes_count','tweet']] return render_template('index.html', tables=[newdf.to_html(classes='data', index=False)], titles=newdf.columns.values) if __name__=='__main__': - app.run(debug=True) \ No newline at end of file + app.run(debug=True)