nlpblogs commited on
Commit
deb599b
·
verified ·
1 Parent(s): 7b2710a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -163,11 +163,10 @@ if st.button("Sentiment Analysis", type="secondary"):
163
  fig1.update_traces(textposition='inside', textinfo='percent+label')
164
  st.plotly_chart(fig1)
165
 
166
- result1 = pd.concat([df, sentiment_df], axis=1)
167
- st.dataframe(result1)
168
-
169
- result = result1.dropna(subset=['Comment'], inplace=True)
170
  st.dataframe(result)
 
 
171
 
172
  with tab2:
173
  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
+ result = pd.concat([df, sentiment_df], axis=1, na_filter=False)
 
 
 
167
  st.dataframe(result)
168
+
169
+
170
 
171
  with tab2:
172
  fig2 = px.bar(result, x="Sentiment", y="comment_date", color="Sentiment")