diff --git a/activity/views.py b/activity/views.py index 55e187ba..c2b87944 100755 --- a/activity/views.py +++ b/activity/views.py @@ -493,7 +493,7 @@ def admin_configurations(request): 'form_label': data.get('form_label'), 'stakeholder_label': data.get('stakeholder_label'), 'date_format': data.get('date_format'), - 'beneficiary_label': data.get('beneficiary_label'), + 'individual_label': data.get('individual_label'), 'training_label': data.get('training_label'), 'distribution_label': data.get('distribution_label'), # 'default_currency': data.get('default_currency') diff --git a/assets/rrima.html b/assets/rrima.html index f5c1ec0e..b99dd245 100644 --- a/assets/rrima.html +++ b/assets/rrima.html @@ -130,14 +130,14 @@ div.cell { display: block; page-break-inside: avoid; - } - div.output_wrapper { + } + div.output_wrapper { display: block; - page-break-inside: avoid; + page-break-inside: avoid; } - div.output { + div.output { display: block; - page-break-inside: avoid; + page-break-inside: avoid; } } @@ -311,7 +311,7 @@ function(Bokeh) { Bokeh.set_log_level("info"); }, - + function(Bokeh) { Bokeh.$("#bd76ffdd-a07e-407a-abc2-13299e48d39f").text("BokehJS successfully loaded"); }, @@ -375,7 +375,7 @@ frameborder="0" allowfullscreen > - + @@ -389,8 +389,8 @@
#import cleaned version of Izmir beneficiary data - removed merged cells in headers etc
-izmir = pd.read_excel('/Users/samlilienfeld/Google Drive/RRIMA/RRIMA Datasets_Forms/Datasets/Turkey Datasets/Clean datasets/CLEAN Beneficiary Database.31052016.xlsx')
+#import cleaned version of Izmir individual data - removed merged cells in headers etc
+izmir = pd.read_excel('/Users/samlilienfeld/Google Drive/RRIMA/RRIMA Datasets_Forms/Datasets/Turkey Datasets/Clean datasets/CLEAN Individual Database.31052016.xlsx')
#code sex and age group of the beneficiary being surveyed - add to already disaggregated family members
+#code sex and age group of the individual being surveyed - add to already disaggregated family members
#izmir_lim['MC_OLD_M>=60'] = np.where((izmir_lim.Gender == 'M') & (izmir_lim.Age >= 60),izmir_lim['MC_OLD_M>=60'] + 1, izmir_lim['MC_OLD_M>=60'])
#izmir_lim['MC_OLD_F>=60'] = np.where((izmir_lim.Gender == 'F') & (izmir_lim.Age >= 60),izmir_lim['MC_OLD_F>=60'] + 1, izmir_lim['MC_OLD_F>=60'])
#izmir_lim['MC_OLD_M>18'] = np.where((izmir_lim.Gender == 'M') & (izmir_lim.Age < 60) & (izmir_lim.Age > 18),izmir_lim['MC_OLD_M>18'] + 1, izmir_lim['MC_OLD_M>18'])
@@ -519,7 +519,7 @@
'MC_OLD_M>=60':'Male',
'MC_OLD_M_Child<5':'Male'}
-izmir_agg['gender_text'] = izmir_agg.variable.map(lambda x: genders[x])
+izmir_agg['gender_text'] = izmir_agg.variable.map(lambda x: genders[x])
#Izmir beneficiary graph
+#Izmir individual graph
izmir_benes_graph = Bar(izmir_agg,label=CatAttr(columns=['age_group'],sort=False),values='Total_Beneficiaries',group='gender_text',
xlabel='Age Group',ylabel='Beneficiaries',title='Izmir',
@@ -878,22 +878,22 @@
{% endblock %}
-{% endblock content %}
\ No newline at end of file
+{% endblock content %}
diff --git a/templates/base.html b/templates/base.html
index 2c4d5d0e..a7386d52 100755
--- a/templates/base.html
+++ b/templates/base.html
@@ -163,7 +163,7 @@
aria-expanded="false">Form Library