Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar-codes committed May 20, 2022
1 parent a970f87 commit 3651973
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
user_list.sort()
user_list.insert(0, "Overall")
selected_user = st.sidebar.selectbox("Show analysis wrt", user_list)
report_pdf = report.create_report(df)
# report_pdf = report.create_report(df)
if st.sidebar.button("Show Analysis"):

# TOP STATS CARD
Expand Down
8 changes: 4 additions & 4 deletions helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def daily_timeline(df,selected_user,report):
st.write("Below is the Week Activity chart of ",selected_user)
st.altair_chart(c, use_container_width=True)

c.save('chart.png')
# c.save('chart.png')


# pdfkit.from_file('simple.html', 'out2.pdf')
Expand Down Expand Up @@ -345,7 +345,7 @@ def week_activity_map(df,selected_user,report):
if f==0:
st.write("Below is the Week Activity chart of ",selected_user)
st.altair_chart(c, use_container_width=True)
c.save('week_activity_map.png')
# c.save('week_activity_map.png')
# st.write(busy_day)
# c = alt.Chart(busy_day.reset_index()).mark_line().encode(
# x='index:T',
Expand Down Expand Up @@ -464,7 +464,7 @@ def most_common_words(df,selected_user,report):
if report==0:
st.write("Below is the word frequency chart of ",selected_user)
st.altair_chart(c, use_container_width=True)
c.save('word_chart.png')
# c.save('word_chart.png')
# return most_common_df

def emoji_table(df,selected_user,report):
Expand Down Expand Up @@ -511,7 +511,7 @@ def emoji_table(df,selected_user,report):
st.write("Below is the emoji frequency chart of ",selected_user)
st.altair_chart(c, use_container_width=True)

c.save('emoji_chart.png')
# c.save('emoji_chart.png')
# Horizontal stacked bar chart
# data = pd.melt(emoji_df.reset_index(), id_vars=["index"])
# chart = (
Expand Down

0 comments on commit 3651973

Please sign in to comment.