📜  异常值删除 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:14.577000             🧑  作者: Mango

代码示例3
#Removing outliers first then skewness
from scipy.stats import zscore
z=abs(zscore(df))
print(z.shape)
df=df[(z<3).all(axis=1)]
df.shape