Update appStore/tapp_display.py
Browse files- appStore/tapp_display.py +3 -2
appStore/tapp_display.py
CHANGED
@@ -73,7 +73,7 @@ def target_display():
|
|
73 |
sector_cols.sort()
|
74 |
hits['Sector'] = hits.apply(lambda x: [col for col in sector_cols if x[col] == True],axis=1)
|
75 |
hits['Sub-Target'] = hits.apply(lambda x: [col for col in ['GHGLabel','NetzeroLabel','NonGHGLabel'] if x[col] == True ],axis=1)
|
76 |
-
st.session_state['target_hits'] = hits
|
77 |
placeholder= []
|
78 |
for col in sector_cols:
|
79 |
placeholder.append({'Sector':col,'Count':sum(hits[col] == True)})
|
@@ -83,7 +83,8 @@ def target_display():
|
|
83 |
st.plotly_chart(fig,use_container_width= True)
|
84 |
st.write('---------------------------')
|
85 |
st.write('Explore the data')
|
86 |
-
|
|
|
87 |
else:
|
88 |
st.info("🤔 No Targets Found")
|
89 |
|
|
|
73 |
sector_cols.sort()
|
74 |
hits['Sector'] = hits.apply(lambda x: [col for col in sector_cols if x[col] == True],axis=1)
|
75 |
hits['Sub-Target'] = hits.apply(lambda x: [col for col in ['GHGLabel','NetzeroLabel','NonGHGLabel'] if x[col] == True ],axis=1)
|
76 |
+
st.session_state['target_hits'] = hits[['keep','text','Sector','Sub-Target','page','MitigationLabel','AdaptationLabel']]
|
77 |
placeholder= []
|
78 |
for col in sector_cols:
|
79 |
placeholder.append({'Sector':col,'Count':sum(hits[col] == True)})
|
|
|
83 |
st.plotly_chart(fig,use_container_width= True)
|
84 |
st.write('---------------------------')
|
85 |
st.write('Explore the data')
|
86 |
+
|
87 |
+
#st.dataframe(hits[['text','page','keep','MitigationLabel','AdaptationLabel','Sector','Sub-Target',]])
|
88 |
else:
|
89 |
st.info("🤔 No Targets Found")
|
90 |
|