def qujizhi(data): Qu,Ql=np.percentile(data,0.75),np.percentile(data,0.25) a_min,a_max=Ql-1.5*(Qu-Ql),Qu+1.5*(Qu-Ql) data=np.clip(data,a_min,a_max) return data
去极值
原文:https://www.cnblogs.com/Yangami/p/14838769.html