Advertisement
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_NC = noncustomer_dt[index].quantile(0.75) - noncustomer_dt[index].quantile(0.25)
- IQR_C = customer_dt[index].quantile(0.75) - customer_dt[index].quantile(0.25)
- for var in index:
- customer_dt = customer_dt.drop(customer_dt[customer_dt[var] > (5 * IQR_C[var])].index)
- noncustomer_dt = noncustomer_dt.drop(noncustomer_dt[noncustomer_dt[var] > (5 * IQR_NC[var])].index)
- market_boxplot(noncustomer_dt, customer_dt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement