Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index = ['Revenue', 'CNT_EMPLOYEE', 'Mobile_potential', 'CNT_CB_DENSITY', 'CNT_CB_MOB_DENSITY', 'CNT_CB_FN_DENSITY']
- iqr_customer = customer_dt[index].quantile(0.75) - customer_dt[index].quantile(0.25)
- iqr_noncustomer = noncustomer_dt[index].quantile(0.75) - noncustomer_dt[index].quantile(0.25)
- for i in index:
- customer_dt = customer_dt.drop(customer_dt[customer_dt[i] > (5*iqr_customer[i])].index)
- noncustomer_dt = noncustomer_dt.drop(noncustomer_dt[noncustomer_dt[i] > (5*iqr_noncustomer[i])].index)
Add Comment
Please, Sign In to add comment