Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- from scipy import stats
- # df = .....
- df = df[(np.abs(stats.zscore(df[feature_cols])) < 3).all(axis=1)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement