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

Update appStore/tapp_display.py

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