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