Pragya Jatav commited on
Commit
2b07dc9
·
1 Parent(s): d50c87c

version changes

Browse files
Files changed (1) hide show
  1. pages/3_Saved_Scenarios.py +11 -7
pages/3_Saved_Scenarios.py CHANGED
@@ -264,9 +264,10 @@ def download_scenarios():
264
  summary_rows.append([name_mod,
265
  channel.get('modified_total_spends') * channel.get('conversion_rate') ,
266
  channel.get('modified_total_sales'),
267
- channel.get('modified_total_sales') / channel.get('modified_total_spends') * channel.get('conversion_rate'),
268
- channel.get('modified_mroi'),
269
- channel.get('modified_total_sales') / channel.get('modified_total_spends') * channel.get('conversion_rate')])
 
270
  _spends.append(_sales)
271
  column_names.append('NRPU')
272
  scenario_df = pd.DataFrame(_spends).T
@@ -277,11 +278,14 @@ def download_scenarios():
277
  summary_rows.append(['Total',
278
  scenario_dict.get('modified_total_spends') ,
279
  scenario_dict.get('modified_total_sales'),
280
- scenario_dict.get('modified_total_sales') / scenario_dict.get('modified_total_spends'),
281
- '-',
282
- scenario_dict.get('modified_total_spends') / scenario_dict.get('modified_total_sales')])
 
283
  columns_index = pd.MultiIndex.from_product([[''],['Channel']], names=["first", "second"])
284
- columns_index = columns_index.append(pd.MultiIndex.from_product([[scenario_name],['Spends','NRPU','ROI','MROI','Spends per NRPU']], names=["first", "second"]))
 
 
285
  if summary_df is None:
286
  summary_df = pd.DataFrame(summary_rows, columns = columns_index)
287
  summary_df = summary_df.set_index(('','Channel'))
 
264
  summary_rows.append([name_mod,
265
  channel.get('modified_total_spends') * channel.get('conversion_rate') ,
266
  channel.get('modified_total_sales'),
267
+ # channel.get('modified_total_sales') / channel.get('modified_total_spends') * channel.get('conversion_rate'),
268
+ # channel.get('modified_mroi'),
269
+ # channel.get('modified_total_sales') / channel.get('modified_total_spends') * channel.get('conversion_rate')
270
+ ])
271
  _spends.append(_sales)
272
  column_names.append('NRPU')
273
  scenario_df = pd.DataFrame(_spends).T
 
278
  summary_rows.append(['Total',
279
  scenario_dict.get('modified_total_spends') ,
280
  scenario_dict.get('modified_total_sales'),
281
+ # scenario_dict.get('modified_total_sales') / scenario_dict.get('modified_total_spends'),
282
+ # '-',
283
+ # scenario_dict.get('modified_total_spends') / scenario_dict.get('modified_total_sales')
284
+ ])
285
  columns_index = pd.MultiIndex.from_product([[''],['Channel']], names=["first", "second"])
286
+ columns_index = columns_index.append(pd.MultiIndex.from_product([[scenario_name],['Spends','Prospects',
287
+ # 'ROI','MROI','Spends per NRPU'
288
+ ]], names=["first", "second"]))
289
  if summary_df is None:
290
  summary_df = pd.DataFrame(summary_rows, columns = columns_index)
291
  summary_df = summary_df.set_index(('','Channel'))