bismillah done
This commit is contained in:
@@ -350,7 +350,7 @@ class DimensionalModelLoader:
|
||||
elif any(w in n for w in ['water', 'sanitation', 'infrastructure', 'rail']):
|
||||
return 'Infrastructure'
|
||||
else:
|
||||
return 'Supporting'
|
||||
return 'Sustainability'
|
||||
dim_indicator['indicator_category'] = dim_indicator['indicator_name'].apply(categorize_indicator)
|
||||
|
||||
dim_indicator = dim_indicator.drop_duplicates(subset=['indicator_name'], keep='first')
|
||||
@@ -471,10 +471,10 @@ class DimensionalModelLoader:
|
||||
try:
|
||||
pillar_codes = {
|
||||
'Availability': 'AVL', 'Access' : 'ACC',
|
||||
'Utilization' : 'UTL', 'Stability': 'STB', 'Supporting': 'SPT',
|
||||
'Utilization' : 'UTL', 'Stability': 'STB', 'Sustainability': 'STN',
|
||||
}
|
||||
pillars_data = [
|
||||
{'pillar_name': p, 'pillar_code': pillar_codes.get(p, 'SPT')}
|
||||
{'pillar_name': p, 'pillar_code': pillar_codes.get(p, 'STN')}
|
||||
for p in self.df_clean['pillar'].unique()
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user