nlpblogs commited on
Commit
fc185b5
·
verified ·
1 Parent(s): 1483572

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -163,8 +163,9 @@ if st.button("Sentiment Analysis", type="secondary"):
163
  fig1.update_traces(textposition='inside', textinfo='percent+label')
164
  st.plotly_chart(fig1)
165
 
166
- result = pd.concat([df, sentiment_df], axis=1)
167
- st.dataframe(result)
 
168
 
169
  with tab2:
170
  fig2 = px.bar(result, x="Sentiment", y="comment_date", color="Sentiment")
 
163
  fig1.update_traces(textposition='inside', textinfo='percent+label')
164
  st.plotly_chart(fig1)
165
 
166
+ df1 = pd.concat([df, sentiment_df], axis=1)
167
+ st.dataframe(df1)
168
+ result = df1.dropna(subset=["Comment"])
169
 
170
  with tab2:
171
  fig2 = px.bar(result, x="Sentiment", y="comment_date", color="Sentiment")