Update appStore/tapp_display.py
Browse files- appStore/tapp_display.py +1 -0
appStore/tapp_display.py
CHANGED
@@ -73,6 +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 |
placeholder= []
|
77 |
for col in sector_cols:
|
78 |
placeholder.append({'Sector':col,'Count':sum(hits[col] == True)})
|
|
|
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)})
|