Update appStore/tapp_display.py
Browse files- appStore/tapp_display.py +2 -2
appStore/tapp_display.py
CHANGED
@@ -69,8 +69,8 @@ def target_display():
|
|
69 |
cols = list(hits.columns)
|
70 |
sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel','text','keep','page'})
|
71 |
sector_cols.sort()
|
72 |
-
hits['Sector'] = hits.apply(lambda x: [col if x[col] == True
|
73 |
-
hits['Sub-Target'] = hits.apply(lambda x: [col
|
74 |
placeholder= []
|
75 |
for col in sector_cols:
|
76 |
placeholder.append({'Sector':col,'Count':sum(hits[col] == True)})
|
|
|
69 |
cols = list(hits.columns)
|
70 |
sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel','text','keep','page'})
|
71 |
sector_cols.sort()
|
72 |
+
hits['Sector'] = hits.apply(lambda x: [col for col in sector_cols if x[col] == True],axis=1)
|
73 |
+
hits['Sub-Target'] = hits.apply(lambda x: [col for col in ['GHGLabel','NetzeroLabel','NonGHGLabel'] if x[col] == True ],axis=1)
|
74 |
placeholder= []
|
75 |
for col in sector_cols:
|
76 |
placeholder.append({'Sector':col,'Count':sum(hits[col] == True)})
|