nickmuchi commited on
Commit
c3a625a
Β·
1 Parent(s): 6155281

Update pages/1_Earnings_Sentiment_Analysis_πŸ“ˆ_.py

Browse files
pages/1_Earnings_Sentiment_Analysis_πŸ“ˆ_.py CHANGED
@@ -39,6 +39,8 @@ if st.session_state.url or st.session_state.upload:
39
  grouped = pd.DataFrame(sen_df['label'].value_counts()).reset_index()
40
  grouped.columns = ['sentiment','count']
41
 
 
 
42
  # Display number of positive, negative and neutral sentiments
43
  fig = px.bar(grouped, x='sentiment', y='count', color='sentiment', color_discrete_map={"Negative":"firebrick","Neutral":\
44
  "navajowhite","Positive":"darkgreen"},\
 
39
  grouped = pd.DataFrame(sen_df['label'].value_counts()).reset_index()
40
  grouped.columns = ['sentiment','count']
41
 
42
+ st.session_state['sen_df'] = sen_df
43
+
44
  # Display number of positive, negative and neutral sentiments
45
  fig = px.bar(grouped, x='sentiment', y='count', color='sentiment', color_discrete_map={"Negative":"firebrick","Neutral":\
46
  "navajowhite","Positive":"darkgreen"},\