Update app.py
Browse files
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 |
-
|
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")
|