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

fix: Replace 'Aol' with 'Yahoo' in compute_offer function

Browse files
Files changed (1) hide show
  1. utils/gradio_utils.py +1 -1
utils/gradio_utils.py CHANGED
@@ -265,7 +265,7 @@ def compute_offer(csv_file, days_lookback, min_sent, domain, team, offer_type, x
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))) \
 
265
  df_all['offer_id'] = df_all['Nume'].str.extract(r'(\d{3,4}$)')
266
 
267
  # Treat Aol as Yahoo
268
+ df_all['Domeniu'].replace('Aol', 'Yahoo', inplace=True)
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))) \