python numpy求四分位距
import numpy as np ages=[3,3,6,7,7,10,10,10,11,13,30] lower_q=np.quantile(ages,0.25,interpolation='lower')#下四分位数 higher_q=np.quantile(ages,0.75,interpolation='higher')#上四分位数 int_r=higher_q-lower_q#四分位距
每天扫一扫,到店付款省钱!
![](https://files.cnblogs.com/files/mahailuo/%E5%95%86%E5%BA%97%E7%BA%A2%E5%8C%85_%E5%89%AF%E6%9C%AC.bmp?t=1668395654)
动动小手支持一下作者,谢谢🙏