EXTREMEXPLOIT

❤ CARLA FUNCIONA! ❤

May 24th, 2020 (edited)
1,603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. index = ['Revenue', 'CNT_EMPLOYEE', 'Mobile_potential', 'CNT_CB_DENSITY', 'CNT_CB_MOB_DENSITY', 'CNT_CB_FN_DENSITY']
  2.  
  3. iqr_customer = customer_dt[index].quantile(0.75) - customer_dt[index].quantile(0.25)
  4. iqr_noncustomer = noncustomer_dt[index].quantile(0.75) - noncustomer_dt[index].quantile(0.25)
  5.  
  6. for i in index:
  7.     customer_dt = customer_dt.drop(customer_dt[customer_dt[i] > (5*iqr_customer[i])].index)
  8.     noncustomer_dt = noncustomer_dt.drop(noncustomer_dt[noncustomer_dt[i] > (5*iqr_noncustomer[i])].index)
Add Comment
Please, Sign In to add comment