ppsingh commited on
Commit
d9f847a
1 Parent(s): 3277cac

Update appStore/tapp_display.py

Browse files
Files changed (1) hide show
  1. 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 for col in sector_cols],axis=1)
73
- hits['Sub-Target'] = hits.apply(lambda x: [col if x[col] == True for col in ['GHGLabel','NetzeroLabel','NonGHGLabel']],axis=1)
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)})