ppsingh commited on
Commit
0dde0c7
1 Parent(s): 03adffa

Update appStore/tapp_display.py

Browse files
Files changed (1) hide show
  1. appStore/tapp_display.py +2 -1
appStore/tapp_display.py CHANGED
@@ -66,7 +66,8 @@ def target_display():
66
  sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel'})
67
  placeholder= []
68
  for col in sector_cols:
69
- placeholder.append({'Sector':col,'Count':sum(hits[col])})
 
70
  sector_df = pd.DataFrame.from_dict(placeholder)
71
  fig = px.bar(sector_df, x='Sector', y='Count')
72
  st.plotly_chart(fig,use_container_width= True)
 
66
  sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel'})
67
  placeholder= []
68
  for col in sector_cols:
69
+ print(col)
70
+ placeholder.append({'Sector':col,'Count':sum(hits[col] == True)})
71
  sector_df = pd.DataFrame.from_dict(placeholder)
72
  fig = px.bar(sector_df, x='Sector', y='Count')
73
  st.plotly_chart(fig,use_container_width= True)