ppsingh commited on
Commit
e68f927
1 Parent(s): db65cd7

Update appStore/tapp_display.py

Browse files
Files changed (1) hide show
  1. appStore/tapp_display.py +2 -2
appStore/tapp_display.py CHANGED
@@ -65,11 +65,11 @@ def target_display():
65
  sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel'})
66
  placeholder= []
67
  for col in sector_cols:
68
- placeholder.append({'Sector':col,'Count':sum(df[col])})
69
  sector_df = pd.DataFrame.from_dict(placeholder)
70
  fig = px.bar(sector_df, x='Sector', y='Count')
71
  st.plotly_chart(fig,use_container_width= True)
72
 
73
- st.dataframe(st.session_state['target_hits'])
74
  else:
75
  st.info("🤔 No Targets Found")
 
65
  sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel'})
66
  placeholder= []
67
  for col in sector_cols:
68
+ placeholder.append({'Sector':col,'Count':sum(hits[col])})
69
  sector_df = pd.DataFrame.from_dict(placeholder)
70
  fig = px.bar(sector_df, x='Sector', y='Count')
71
  st.plotly_chart(fig,use_container_width= True)
72
 
73
+ st.dataframe(hits])
74
  else:
75
  st.info("🤔 No Targets Found")