zzmez commited on
Commit
090e816
·
1 Parent(s): 9acdb25

feat: Treat Aol as Yahoo in compute_offer function

Browse files
Files changed (1) hide show
  1. utils/gradio_utils.py +3 -0
utils/gradio_utils.py CHANGED
@@ -263,6 +263,9 @@ def compute_offer(csv_file, days_lookback, min_sent, domain, team, offer_type, x
263
  'Click Open', 'Leads', 'CLike', 'Complains', 'Traps', 'Send', 'ECPM', 'Comision', 'Domeniu']
264
 
265
  df_all['offer_id'] = df_all['Nume'].str.extract(r'(\d{3,4}$)')
 
 
 
266
 
267
  if offer_type == "Offers - IDs only" or offer_type == "Offers":
268
  exclude_list = df_all[(df_all['Data'] > (pd.Timestamp('now') - pd.Timedelta(days=days_lookback))) \
 
263
  'Click Open', 'Leads', 'CLike', 'Complains', 'Traps', 'Send', 'ECPM', 'Comision', 'Domeniu']
264
 
265
  df_all['offer_id'] = df_all['Nume'].str.extract(r'(\d{3,4}$)')
266
+
267
+ # Treat Aol as Yahoo
268
+ df_all[df_all['Domeniu'] == 'Aol'] = 'Yahoo'
269
 
270
  if offer_type == "Offers - IDs only" or offer_type == "Offers":
271
  exclude_list = df_all[(df_all['Data'] > (pd.Timestamp('now') - pd.Timedelta(days=days_lookback))) \